user781486 user781486 - 3 years ago 463
Python Question

pip stopped working after upgrading anaconda v4.4 to v5.0

I ran the command

conda update anaconda
to update anaconda v4.4 to v5.0

After anaconda was successfully upgraded to v5.0, I had problems running

This is the error output I see after running

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\Scripts\", line 6, in <module>
from pip import main
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\", line 28, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\vcs\", line 9, in <module>
from import path_to_url
File "C:\ProgramData\Anaconda3\lib\site-packages\pip\", line 41, in <module>
from pip._vendor.requests.adapters import BaseAdapter, HTTPAdapter
ModuleNotFoundError: No module named 'pip._vendor.requests.adapters'

How can I get pip to work again? I am using Windows10, 64-bit python v3.6 anaconda v5.0

Answer Source

Had the same problem fixed by renaming the directory:

then running conda install -f pip

(Then I guess it's safe to remove the renamed directory)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download