【发布时间】:2021-06-25 03:48:00
【问题描述】:
我想将 python 版本从 3.6.1 更新到 3.7。我所做的是安装 python 3.7 并通过sudo update-alternatives --config python3 更改python3 的版本。发现有多个版本(我也安装了3.8版本):
There are 2 choices for the alternative python3 (providing /usr/bin/python3).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3.7 2 auto mode
1 /usr/bin/python3.7 2 manual mode
2 /usr/bin/python3.8 1 manual mode
(我不确定为什么列表中没有 3.6.1)
交替版本后,当我输入python --version时,终端仍然显示3.6.1版本:
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
经过几次尝试,我仍然无法更新我的 python 版本。似乎它与Anaconda问题有关,但在搜索互联网后我仍然没有找到解决方案。我该怎么办?
我使用的是 ubuntu 20.04。
【问题讨论】:
标签: python-3.x anaconda ubuntu-20.04