简体   繁体   English

安装正确版本的 Python 时出现问题

[英]Problems installing the right version of Python

Has anyone had this problem: when trying to install python>=3.6.6 by typing sudo apt-get install python>=3.6.6, to get another version?有没有人遇到过这个问题:当尝试通过键入 sudo apt-get install python>=3.6.6 来安装 python>=3.6.6 以获得另一个版本时? I get 3.5.3 and I do not understand why it happens so.我得到 3.5.3,但我不明白为什么会这样。 Could anyone help?有人可以帮忙吗?

Thanks!谢谢!

The version of python installed through apt is determined by the configuration in /etc/apt/sources.list .通过apt安装的python的版本由/etc/apt/sources.list中的配置决定。 You can modified it to add additional sources but it is not recommended to do so since it may cause unexpected problems.您可以对其进行修改以添加其他来源,但不建议这样做,因为它可能会导致意外问题。 A more safe way is to use anaconda or miniconda to manage your python environment.更安全的方法是使用anacondaminiconda来管理您的 python 环境。 You can install any version of python through conda .您可以通过 conda 安装任何版本的conda Refer to this tutorial .请参阅本教程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM