Import error: dependency depends on every attempt to install package

I am a Mac user and install using the command used to work. However, I did something and now it doesn't work anymore. An pip install somepackagename

error appears on startup ImportError: cannot import name DependencyWarning

. I have pasted the whole error below while trying to install PyPDF2.

As far as I understand, this is a bug with the module requests

. I tried to remove it by doing package removal requests, which results in the same error. Removing other packages.

Anyone have any idea what is going wrong?

Error installing PyPDF2

Traceback (most recent call last):
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/bin/pip", line 9, in <module>
    load_entry_point('pip==7.1.2', 'console_scripts', 'pip')()
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/Arno/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pip/__init__.py", line 22, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning

      

+3


source to share





All Articles