[英]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.