34

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?

Tom Hunter
  • 5,714
  • 10
  • 51
  • 76
  • Refer https://stackoverflow.com/questions/48729329/python3-cannot-import-dlib-but-installed-using-conda/48732498. I am a nowise and I don't understand what happened underneath - but this worked for dlib installation issues. – emeralddove Aug 25 '19 at 10:43

3 Answers3

25

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.

Jimmy C
  • 9,270
  • 11
  • 44
  • 64
  • 5
    Thanks - uninstalled it with `conda uninstall enum34` and now able to run `conda install python=3.6` – Tom Hunter Feb 06 '17 at 22:44
  • 1
    I ran into other conflicts and they didn't all get listed the first time I tried to upgrade to 3.6 – ansonw Mar 01 '17 at 02:21
  • I have this same issue, though uninstalling enum34 now gives me "ImportError: No module named enum" – Emily K May 17 '17 at 16:42
  • @EmilyK I'm getting the same error. Did you ever figure it out? – mjsxbo May 28 '18 at 06:57
  • 1
    @NirvanAnjirbag I honestly don't remember... I might have just uninstalled my Anaconda altogether and just downloaded 3.6 fresh. – Emily K May 29 '18 at 13:59
  • I am getting the below error when trying to install dlib: UnsatisfiableError: The following specifications were found to be incompatible with the existing python installation in your environment: - dlib -> python[version='2.7.*|3.5.*|>=3.5,<3.6.0a0'] - dlib -> python[version='>=2.7,<2.8.0a0'] – emeralddove Aug 25 '19 at 09:48
  • Could not remove the package and then discovered this link - found it working: https://stackoverflow.com/questions/48729329/python3-cannot-import-dlib-but-installed-using-conda/48732498 – emeralddove Aug 25 '19 at 10:44
9

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.

Juan Carlos Ramirez
  • 2,054
  • 1
  • 7
  • 22
Shital Shah
  • 63,284
  • 17
  • 238
  • 185
  • "Sometime this will keep showing new offending packages. In that case, I would just remove Anaconda installation from the path, delete folder and re-install." This is what happened to me.. To preserve my Environments, I shared each environment as 'environment.yml' file, and later on after installing a fresh latest version anaconda, I imported my environments from these files. Details how to do it: https://conda.io/docs/user-guide/tasks/manage-environments.html#sharing-an-environment – Haider Mar 26 '18 at 17:45
0

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

RAJIT NAIR
  • 11
  • 1