简体   繁体   English

加载共享库时出现 Python 错误:libpython3.5m.so.1.0:无法打开共享对象文件:没有这样的文件或目录

[英]Python error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory

On my Fedora 25 I have configured the virtual environment with python 3.5 and after upgrading the system to Fedora 27 I cannot longer launch django app withing the virtual env (python manage.py runserver) neither check the version of the python:在我的 Fedora 25 上,我用 python 3.5 配置了虚拟环境,在将系统升级到 Fedora 27 后,我无法再使用虚拟环境(python manage.py runserver)启动 django 应用程序,也没有检查 python 的版本:

error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory加载共享库时出错:libpython3.5m.so.1.0:无法打开共享对象文件:没有这样的文件或目录

Could you please advice what to do next?你能建议下一步做什么吗? I'm not advanced user in terms of python configuration.在 python 配置方面,我不是高级用户。 Shall I reinstall python 3.5 or try to set up virtual environment once again?我应该重新安装python 3.5还是尝试再次设置虚拟环境?

Any help greatly appreciated.非常感谢任何帮助。

Thank you phd and Kevin L.!谢谢博士和凯文 L.!

The virtualenv -p python3 my_env_name solved the issue. virtualenv -p python3 my_env_name 解决了这个问题。

Then it was important to restore dependencies via pip module然后通过 pip 模块恢复依赖很重要

Anyone doing the migration (to newer linux or another pc) I also recommend to dump the dependencies with pip freeze > requirements.txt.任何进行迁移的人(到更新的 linux 或另一台电脑)我还建议使用 pip freeze > requirements.txt 转储依赖项。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python3.5 导入错误:libpython3.5m.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - Python3.5 ImportError: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory python:加载共享库时出错:libpython3.4m.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory Pyinstaller:无法打开共享对象 libpython3.5m.so.1.0 - Pyinstaller: Cannot open shared object libpython3.5m.so.1.0 ImportError:libpython3.7m.so.1.0:无法打开共享 object 文件:没有这样的文件或目录 - ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory 问:python(在集群的bash脚本中使用cutadapt):libpython3.7m.so.1.0:无法打开共享对象文件:无此类文件或目录 - Q: python (using cutadapt in bash script on cluster): libpython3.7m.so.1.0: cannot open shared object file: No such file or directory Python3.7:加载共享库时出错:libpython3.7m.so.1.0 - Python3.7: error while loading shared libraries: libpython3.7m.so.1.0 ./python:加载共享库时出错:libssl.so.1.1:无法打开共享对象文件:没有这样的文件或目录 - ./python: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory ImportError: libpython3.8.so.1.0: 无法打开共享对象文件: 没有那个文件或目录 - ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory Docker:libpython2.7.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - Docker: libpython2.7.so.1.0: cannot open shared object file: No such file or directory libpython2.7.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - libpython2.7.so.1.0: cannot open shared object file: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM