pypa / pip

The Python package installer
https://pip.pypa.io/
MIT License
9.55k stars 3.04k forks source link

Error after updating pip 6.0.5 #2316

Closed duytrung closed 9 years ago

duytrung commented 9 years ago

Hi, I used Anaconda python distro. Here is the error I got when updating pip via Pycharm, it update but later I found the error whenever running pip in command promp, for example "pip list".

===============================================================================
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\System32>cd C:\Anaconda\Scripts

C:\Anaconda\Scripts>pip list
Traceback (most recent call last):
  File "C:\Anaconda\Scripts\pip-script.py", line 5, in <module>
    from pkg_resources import load_entry_point
  File "C:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 2970, in <module>
    working_set = WorkingSet._build_master()
  File "C:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 569, in _build_mast
er
    return cls._build_from_requirements(__requires__)
  File "C:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 582, in _build_from
_requirements
    dists = ws.resolve(reqs, Environment())
  File "C:\Anaconda\lib\site-packages\pkg_resources\__init__.py", line 761, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==6.0.5
===============================================================================

I've tried to download the latest pip 6.0.6 wheel and make a manual installation by extract the files into folder sitepackages but the problem still persist.

What can I do now?, How can I recompile all the source to binary.

Sorry I'm python novice. Regards

I

dstufft commented 9 years ago

Try python -m pip install pip -U --force-reinstall.

duytrung commented 9 years ago

Thanks Dstufft!