Fix 'python -m pip install --upgrade pip'

tags: ros2  install  python3  pip

Always stuck in this question:

DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (19.0.3)

Solution:

cd /usr/local/lib/python2.7/dist-packages
sudo rm -rf pip-19.0.3.dist-info
sudo python -m pip install --upgrade pip

Continue to install ros2.
When you install python3 -m pip install -U you will get:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '__init__.py'
Consider using the `--user` option or check the permissions.

The solution is to add a sudo in front.

Intelligent Recommendation

Solve python -m pip install --Upgrade PIP upgrade unsuccessful issues

Solve python -m pip install --Upgrade PIP upgrade unsuccessful issues Upgrade is unsuccessful, because the server connection timeout, you can use the following code to try...

Solve the 'python -m pip install --upgrade pip' error

Prompt when installing the package again And i run as requiredpython -m pip install --upgrade pip After the upgrade is still not successful, the prompt is as follows: So as requiredd:\fish\venv\lib\si...

Solve 'Python -M Pip Install --Upgrade Pip' error problem

Solve 'Python -M Pip Install --Upgrade Pip' error problem The small partner may have the version problem of the PIP package when installing Python. Here is the prompt to upgrade the package of PIP Ent...

Execute python -m pip install --upgrade pip error (resolved)

Execute python -m pip install --upgrade pip report error PermissionError: [WinError 5] Access denied. : ‘c:\program files\python36\lib\site-packages\pip-9.0.1.dist-info\description.rst’ Yo...

Install and upgrade pip, but python -m pip install --upgrade pip reports an error.

Generally, when we install or call the pip library, we will tell you that the pip version is low and you need to upgrade. For example, my local machine is as follows. I. I cd directly to my pip direct...

More Recommendation

Failed in Python using python -m pip install --upgrade pip pip upgrade

Failed in Python using python -m pip install --upgrade pip pip upgrade In the process of learning Python, you need to install pygame modules, shot in error when I execute the following command to inst...

Upgrade pip timeout python -m pip install --upgrade pip reports socket.timeout: The read operation timed out

Upgrade pip timeout python -m pip install --upgrade pip reports socket.timeout: The read operation timed out When using python -m pip install --upgrade pip to update and upgrade pip, an error occurred...

Upgrade PIP Timeout Python -M Pip Install --Upgrade PIP (Ultimate Solving)

When installing the package today, the display to upgrade PIP: But enter the command python -m pip install --upgrade pip provided above, but timeout, upgrade failed: Finally, I find a solution is to s...

How to solve the problem of invalid installation of python -m pip install --upgrade pip update and pip install numpy in Python

Update pip and install numpy in Python Update pip Question prompt normal method Plus mirror quick update Install numpy method one Method Two to sum up Update pip Question prompt win+R>>cmd>&g...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top