Python报mongod: error while loading shared libraries: libcrypto.so.1.1解决
使用Python安装完mongodb之后,在执行mongod报如下错误:
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
解决办法:
找到使用的虚拟环境,例如我的虚拟环境的名称叫torch
,使用下面的命令查看环境下是否存在libcrypto.so.1.1
文件
#切换到lib目录下 cd /root/anaconda3/envs/torch/lib #查看文件是否存在 ls -lh | grep "libcrypto.so.1.1" -rwxrwxrwx 1 root root 3.2M 6月 4 15:43 libcrypto.so.1.1 #如果文件存在执行下面的命令 sudo ldconfig /root/anaconda3/envs/torch/lib
如果lib目录下没有就是使用下面的命令进行全局搜索
find / -name 'libcrypto.so.1.1'
观察搜索的结果,找到存在的目录就是使用上面的sudo ldconfig
目录路径
到此这篇关于Python报mongod: error while loading shared libraries: libcrypto.so.1.1解决的文章就介绍到这了,更多相关Python报mongod: error while loading shared libraries: libcrypto.so.1.1内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
相关文章
Python async+request与async+aiohttp实现异步网络请求探索
这篇文章主要介绍了Python async+request与async+aiohttp实现异步网络请求探索,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习吧2022-10-10Pandas告警UserWarning:pandas only supports SQLAlchemy conn
这篇文章主要给大家介绍了关于Pandas告警UserWarning:pandas only supports SQLAlchemy connectable的处理方式,文中还分享了pandas还有哪些userwarning,对大家学习或者工作具有一定的参考借鉴价值,需要的朋友可以参考下2024-02-02
最新评论