pip: incorrect behavior of pip install --upgrade pip
It installs a different version (7.1.2) than it downloaded (8.0.2). No idea how that’s even possible, even if I had a 7.1.2 wheel already cached from an install for a different Python version.
<installed something ...>
You are using pip version 6.0.3, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
rgommers@machine:~/Code/tmp$ pip install --upgrade pip
/usr/local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting pip
Downloading pip-8.0.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 226kB/s
Installing collected packages: pip
Found existing installation: pip 6.0.3
Uninstalling pip-6.0.3:
Successfully uninstalled pip-6.0.3
Successfully installed pip-7.1.2
You are using pip version 7.1.2, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
rgommers@machine:~/Code/tmp$ pip install --upgrade pip
Collecting pip
Using cached pip-8.0.2-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Successfully installed pip-8.0.2
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 33 (25 by maintainers)
The issue seems to be that when you have two or more
pips installed in different places, it uninstalls the one that’s first on the path, then reports that it has installed the version that is already installed.This I concluded from another attempt on a different machine:
dist-packagesis the one shipped with the OS. And since I didn’t usesudo, I’m sure that 1.5.4 wasn’t actually installed even thoughpiptells me that.