我是 Conda 包管理的新手,我想获得最新版本的 Python 以在我的代码中使用 f-strings。目前我的版本是 (python -V
):
Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
如何升级到 Python 3.6?
最佳答案
Anaconda 内部没有将 python 更新到 3.6。
a) 方法一
如果你想更新,你可以输入
conda update python
要更新 anaconda 类型
conda update conda
如果你想在主要的 python 版本之间升级,比如 3.5 到 3.6,你必须这样做
conda install python=$pythonversion$
b) 方法 2 - 创建一个新环境(更好的方法)
conda create --name py36 python=3.6
c) 获取绝对最新的 python(撰写本文时为 3.6.5)
conda create --name py365 python=3.6.5 --channel conda-forge
你可以从 here 看到这一切
另外,请引用这里的力量 upgrading
编辑:Anaconda 现在有一个 Python 3.6 版本 here
关于python - 如何使用 conda 升级到 Python 3.6?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41535881/