conda install python=3.6 UnsatisfiableError

ⅰ亾dé卋堺 提交于 2019-11-26 16:58:17

问题


I currently have Python 3.5.2 installed via Anaconda Continuum. I'm trying to upgrade to Python 3.6 but I'm getting the below error when I try to run conda install python=3.6:

UnsatisfiableError:
The following specifications were found to be in conflict:
- enum34 -> python 2.6*|2.7*|3.3*|3.5*
- python ==3.6.0
Use "conda info " to see the dependencies for each package.

What might be causing this?


回答1:


You have enum34 installed, which requires 2.6-3.5. Installing Python 3.6 is thus not possible without either updating enum34 to see if newer versions support 3.6, removing enum34, or installing Python 3.6 in a new environment.




回答2:


I had the same error but a bit different:

UnsatisfiableError: The following specifications were found to be in conflict:
  - argcomplete -> python 3.5*
  - python ==3.6
Use "conda info <package>" to see the dependencies for each package.

You can try removing offending packages like this:

conda remove argcomplete conda-manager

Sometimes this will keep showing new offending packages. In that case, I would just remove Anaconda installation from the path, delete folder and re-install.

However, ultimately I just found that Python 3.6 is not worth the trouble yet due to incompatibility with TensorFlow, OpenCV, VS2015 etc. So I ended up making Python 3.5 as default by doing this in Anaconda:

conda install python=3.5

This command will overwrite your Python version in conda with 3.5. Doing this fixed most of the errors I was facing.




回答3:


if anybody founds difficulty in upgradation of python like conda install python=3.6 UnsatisfiableError due to some other library like env, lasagne etc.In that case just remove that library using the command conda remove library name and again do the installation by using command conda update python



来源:https://stackoverflow.com/questions/42075581/conda-install-python-3-6-unsatisfiableerror

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