Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 Ubuntu 19.04 操作系统,我需要 python 3.6 版本,所以我设法在我的设备上获得了 python3.6 而没有删除 python3.7,但现在我想恢复使用 python3.7。谁能建议怎么做?
尝试使用虚拟环境,即 anaconda 来处理这些事情。我不知道任何其他方法。Anaconda 基本上创建了一个虚拟环境,您可以在其中指定所有包的版本,包括 python 本身
如果您安装了多个版本的 Python,您可以选择使用哪一个作为默认版本update-alternatives:
update-alternatives
sudo update-alternatives --config python3
,然后按照提示说明进行操作。