如何使用 conda 升级到 Python 3.6? [英] How do I upgrade to Python 3.6 with conda?

查看:56
本文介绍了如何使用 conda 升级到 Python 3.6?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Conda 包管理的新手,我想获得最新版本的 Python 以在我的代码中使用 f 字符串.目前我的版本是 (python -V):

Python 3.5.2 :: Anaconda 4.2.0 (x86_64)

我将如何升级到 Python 3.6?

解决方案

Anaconda 尚未在内部将 python 更新到 3.6.

a) 方法一

  1. 如果你想更新,你可以输入conda update python

  2. 更新anaconda类型conda update conda

  3. 如果你想在像 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

  1. If you wanted to update you will type conda update python

  2. To update anaconda type conda update conda

  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆