`pip install --upgrade` reports wrong version on success
See original GitHub issueWhen upgrading, pip reports that it “Successfully installed” the version it just upgraded from.
Actual upgrade seems to have succeeded, it’s just the success message is wrong.
$ pip install --upgrade pip
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-6.0.7-py2.py3-none-any.whl#md5=9a7ea5d89062613887b75e01e5d82c36
Using cached pip-6.0.7-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 6.0.6
Uninstalling pip-6.0.6:
Successfully uninstalled pip-6.0.6
Successfully installed pip-6.0.6
$ pip --version
pip 6.0.7 from /usr/local/lib/python2.7/site-packages (python 2.7)
Issue Analytics
- State:
- Created 9 years ago
- Reactions:2
- Comments:13 (2 by maintainers)
Top Results From Across the Web
pip install/upgrade fails with SyntaxError - Stack Overflow
It seems like you have a Python version lower than 3.6. Pip has introduced new syntax on its latest releases, so upgrading from...
Read more >Error: legacy-install-failure with pip install [Fixed] | bobbyhadz
To solve the Error: legacy-install-failure, upgrade your versions of `pip`, `setuptools` and `wheel` before running `pip install`.
Read more >Troubleshooting AWS CLI errors - AWS Command Line Interface
General troubleshooting to try first. If you receive an error or encounter an issue with the AWS CLI, we suggest the following general...
Read more >Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get...
Read more >apache-airflow-upgrade-check - PyPI
pip install apache-airflow-upgrade-check airflow upgrade_check ... exit code of the command will be 0 (success) if no problems are reported, or 1 otherwise....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That was my initial suspicion, but it doesn’t seem to account for the concluding message of the
pip install --user --upgrade pip
command:Successfully installed pip-6.0.7
. Unless that message is actually checking the pip version itself and therefore running into the issue you described. However, I would expect pip to be able to upgrade itself in user mode and report the correct upgraded version upon completion (even if a subsequent pip command does not use the upgraded pip without my manually settingPYTHONPATH
).Hopefully fixed by #3723