conda install downgrade python version

旧时模样 提交于 2019-12-03 13:27:53

问题


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

~/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?


回答1:


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

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

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 anaconda at the end allows the env to use all anaconda packages


For more information refere to Anaconda documentation




回答2:


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

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


来源:https://stackoverflow.com/questions/43630002/conda-install-downgrade-python-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!