"pkg_resources.DistributionNotFound: pip==1.5.6 Error with pip"
2017-10-19 08:45 (9 years ago)

If you have an old version of pip, running pip install -U pip can break pip.
$ pip
Traceback (most recent call last):
File "/usr/local/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 446, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 459, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==1.5.6
To fix this, use easy_install:
$ sudo easy_install --upgrade pip
I found this information here. Thank you.
How to update a broken pip · kamatari
https://kamatari.github.io/2014/06/29/how-to-update-pip/
Please rate this article (No signup or login required)
Currently unrated
Related posts
What to Do When You Can't Update PIP for Python 2.7 in the Default Mac Environment
Fix: pipenv install fails with AttributeError: module 'pkgutil' has no attribute 'ImpImporter' (Python 3.12)
Rebuild Python3.5 to Fix pip install uwsgi Error on Ubuntu18
Add Environment Variables When You Encounter the Error "pip install pillow → error: command 'cc' failed with exit status 1"
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.