如何使用 conda 升级到 Python 3.6? [英] How do I upgrade to Python 3.6 with conda?
问题描述
我是 Conda 包管理的新手,我想获得最新版本的 Python 以在我的代码中使用 f 字符串.目前我的版本是 (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
如果你想在像 3.5 到 3.6 这样的主要 python 版本之间升级,你必须这样做
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
您可以从此处
另外,请参考此强制升级
Anaconda 现在有一个 Python 3.6 版本这里
I'm new to Conda package management and I want to get the latest version of Python to use f-strings in my code. Currently my version is (python -V
):
Python 3.5.2 :: Anaconda 4.2.0 (x86_64)
How would I upgrade to Python 3.6?
Anaconda has not updated python internally to 3.6.
a) Method 1
If you wanted to update you will type
conda update python
To update anaconda type
conda update conda
If you want to upgrade between major python version like 3.5 to 3.6, you'll have to do
conda install python=$pythonversion$
b) Method 2 - Create a new environment (Better Method)
conda create --name py36 python=3.6
c) To get the absolute latest python(3.6.5 at time of writing)
conda create --name py365 python=3.6.5 --channel conda-forge
You can see all this from here
Also, refer to this for force upgrading
EDIT: Anaconda now has a Python 3.6 version here
这篇关于如何使用 conda 升级到 Python 3.6?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!