删除 Python 3 的较新版本
Delete newer versions of Python 3
我有多个版本 Python 3
Python3.7
Python3.6
Python3.5
我想删除 python 3.6 和 3.7 并将 3.5 版本设置为默认版本,这样我使用 pip 安装的所有内容都会安装在 python 3.5.
当我现在在终端中输入 python3 时,我得到了 3.7 版本。
OS - Ubuntu 16.04 LTS
我没有删除 python 版本,因为这可能会破坏我的系统,因为这些版本带有软件更新。
相反,我使用以下命令在 python3.5
中安装库
python3.5 -m pip install <library-name>
更多信息:Dealing with multiple Python versions and PIP?
我有多个版本 Python 3
Python3.7
Python3.6
Python3.5
我想删除 python 3.6 和 3.7 并将 3.5 版本设置为默认版本,这样我使用 pip 安装的所有内容都会安装在 python 3.5.
当我现在在终端中输入 python3 时,我得到了 3.7 版本。
OS - Ubuntu 16.04 LTS
我没有删除 python 版本,因为这可能会破坏我的系统,因为这些版本带有软件更新。
相反,我使用以下命令在 python3.5
中安装库
python3.5 -m pip install <library-name>
更多信息:Dealing with multiple Python versions and PIP?