我把Ubuntu从18升级到了20
我有一个由第三方提供的软件包,虚拟环境已经设置好了。
软件包要求是Python 3.7,但是Ubuntu 20删除了Python 3.7,我有Python 3.8
在虚拟环境中运行以下命令,我得到以下结果
python --version
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.7.5
字符串
该错误是什么意思?
最佳方法是什么,安装Python 3.7与Python 3.8一起运行
我没有对系统进行任何更改。
1条答案
按热度按时间dgtucam11#
您可以安装
asdf
,然后使用命令asdf install python 3.7.5
安装任何您想要的Python版本请看这个https://gist.github.com/rubencaro/888fb8e4f0811e79fa22b5ac39610c9e