Friday, February 18, 2022

[SOLVED] virtualenv pip does not upgrade

Issue

My system pip is install in /opt/.../site-packages. It is versio 1.5.6. In a new virtualenv I run pip install -U pip. I see:

...Downloading pip-18.0-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded
Installing collected packages: pip
  Found existing installation: pip 1.5.6
Not uninstalling pip at /opt/site-packages, outside environment /home/venv
Successfully installed pip
Cleaning up...
 Removing temporary dir /home/venv/build...

But pip -V now still says pip 1.5.6 from /opt/.../site-packages

Both pip and pip2 present in the venv/bin dir show the same. which pip points to the pip in the venv/bin path, so it looks like that pip bin is just never being updated. How do I use the new pip I just installed in my virtual environment?


Solution

Solution was (virtualenv):easy_install -U pip



Answered By - user2183336
Answer Checked By - Senaida (WPSolving Volunteer)