pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found and is required by the application
14,466
Updated for 2017 (Ubuntu 17)
sudo apt-get purge python-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
pip --version
rm get-pip.py
Author by
Bharadwaj
I am Lead Engineer @ Samsung India Software Operations. I am currently working on parsers and grammars for SQL query. Worked on data base for mobile search.
Updated on June 23, 2022Comments
-
Bharadwaj almost 2 years
Working on Ubuntu and Python 2.7.6, I am trying to use pip. When I type just
pip
followed by enter, I get:File "/usr/local/bin/pip", line 5, in <module> from pkg_resources import load_entry_point File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3095, in <module> File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3081, in _call_aside File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 660, in _build_master File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 673, in _build_from_requirements File "build/bdist.linux-x86_64/egg/pkg_resources/__init__.py", line 846, in resolve pkg_resources.DistributionNotFound: The 'pip==1.5.4' distribution was not found and is required by the application
-
Klaus D. over 7 yearsUsually the output of
pip
states where a requirement comes from. You should add the full output ofpip
(and format it as code).
-
-
Jonathan over 6 yearsWorks but out of date. Added a newer one
-
driven_spider over 5 yearsI was trying to install grpc package using pip3 install grpc I had upgraded pip to pip3 recently. Once I inserted the above command to install grpc, it was throwing some errors from pip import main ImportError: cannot import name 'main' Then I tried this answer askubuntu.com/questions/969463/… : Dint work for me. After trying your suggestion on getting latest pip with python-ip not python3-pip it worked. with this I dont have to say pip3, i can just say pip.
-
Jonathan over 5 years
pip --version
-
Jonathan over 5 yearsPip3 is technically not an upgrade to pip, it is a tool for the python3 language, and pip2 is a tool for the python2 language, so technically they are for different language versions and thus not an upgrade of each other. For example pip2 and pip3 can both be version 18
-
RalfFriedl almost 5 yearsAnd what is that supposed to do? Why would it help?