question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`pip install --upgrade` reports wrong version on success

See original GitHub issue

When 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:closed
  • Created 9 years ago
  • Reactions:2
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cvinercommented, Jun 9, 2015

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 setting PYTHONPATH).

0reactions
xavfernandezcommented, Oct 27, 2016

Hopefully fixed by #3723

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found