introtodeeplearning icon indicating copy to clipboard operation
introtodeeplearning copied to clipboard

Conflicting dependencies during install

Open MaxHoefl opened this issue 5 years ago • 1 comments

Hi,

Thanks very much for making this material public! I am getting a dependency conflict error while installing mitdeeplearning package. After creating a fresh environment:

$ pip install mitdeeplearning
Collecting mitdeeplearning
  Using cached mitdeeplearning-0.2.0.tar.gz (2.1 MB)
  Using cached mitdeeplearning-0.1.2.tar.gz (2.1 MB)
  Using cached mitdeeplearning-0.1.1.tar.gz (2.1 MB)
  Using cached mitdeeplearning-0.1.0.tar.gz (2.1 MB)
ERROR: Cannot install mitdeeplearning==0.1.0, mitdeeplearning==0.1.1, mitdeeplearning==0.1.2 and mitdeeplearning==0.2.0 because these package versions have conflicting dependencies.

The conflict is caused by:
    mitdeeplearning 0.2.0 depends on tensorflow>=2.0.0a
    mitdeeplearning 0.1.2 depends on tensorflow>=2.0.0a
    mitdeeplearning 0.1.1 depends on tensorflow>=2.0.0a
    mitdeeplearning 0.1.0 depends on tensorflow>=2.0.0a

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

For info:

$ which python -> /Users/mh/.local/share/virtualenvs/mit-intro-deep-learning-am1-C6dh/bin/python $ python --version -> Python 3.9.0 $ pip freeze -> empty

Thanks for the help

MaxHoefl avatar Feb 20 '21 15:02 MaxHoefl

Your mitdeeplearning package requires TensorFlow version >=2.0.0a Please check your TensorFlow version on terminal with: pip show tensorFlow

Or just use https://colab.research.google.com/

rafayqayyum avatar Aug 08 '22 10:08 rafayqayyum