conda 安装降级 python 版本

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43630002/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 23:14:58  来源:igfitidea点击:

conda install downgrade python version

pythonanacondaconda

提问by mrgloom

I'm trying to downgrade python version of anaconda via conda install python=3.3, but have following error:

我正在尝试通过 降级 anaconda 的 python 版本conda install python=3.3,但出现以下错误:

~/anaconda3/bin$ ./conda install python=3.3
Fetching package metadata .........
Solving package specifications: .


UnsatisfiableError: The following specifications were found to be in conflict:
  - gevent -> python 2.6*
  - python 3.3*
Use "conda info <package>" to see the dependencies for each package.

How to resolve conflicts with the packages?

如何解决与包的冲突?

回答by CermakM

If you want to set specific version, use it like this:

如果要设置特定版本,请像这样使用它:

WARNING:This command will overwrite the default python version system-wise

警告:此命令将覆盖系统的默认 python 版本

conda install python=3.6



To create environment with a specific version, you can do:

要创建具有特定版本的环境,您可以执行以下操作:

conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda  # set custom env name

The anacondaat the end allows the env to use all anaconda packages

anaconda在年底允许ENV使用所有蟒蛇包



For more information refere to Anaconda documentation

有关更多信息,请参阅Anaconda 文档

回答by ally-e

You can make environments with other versions of Python using this command:

您可以使用以下命令使用其他版本的 Python 创建环境:

conda create --name py33 python=3.3
source activate py33