Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Successfully installed pip x.y.z" message can print an incorrect version #2642

Closed
tdsmith opened this issue Apr 7, 2015 · 2 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@tdsmith
Copy link
Contributor

tdsmith commented Apr 7, 2015

In step 4, pip will print "Successfully installed pip 1.5.6" even though 6.1.0 has been correctly installed.

To reproduce:

  1. mkdir test; cd test; virtualenv .; . bin/activate

  2. Query pip's version:

    (test)darkside:test tim$ pip -V
    pip 1.5.6 from /Users/tim/test/lib/python2.7/site-packages (python 2.7)
    

    Pip is a flat installation:

    (test)darkside:test tim$ python -c "import pip; print pip.__file__"
    /Users/tim/test/lib/python2.7/site-packages/pip/__init__.pyc
    
  3. Install a newer but not newest pip egg: easy_install pip==6.0.8

    (test)darkside:test tim$ pip -V
    pip 6.0.8 from /Users/tim/test/lib/python2.7/site-packages/pip-6.0.8-py2.7.egg (python 2.7)
    
  4. Upgrade pip: pip install -U pip

    (test)darkside:test tim$ pip install -U pip
    You are using pip version 6.0.8, however version 6.1.0 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-6.1.0-py2.py3-none-any.whl#md5=94faa2660c3a2ebe7d015d62c8726259
    Using cached pip-6.1.0-py2.py3-none-any.whl
    Installing collected packages: pip
    Found existing installation: pip 6.0.8
      Uninstalling pip-6.0.8:
        Successfully uninstalled pip-6.0.8
    
    Successfully installed pip-1.5.6
    (test)darkside:test tim$ pip -V
    pip 6.1.0 from /Users/tim/test/lib/python2.7/site-packages (python 2.7)
    
  5. Upgrade pip again: pip install -U pip

    (test)darkside:test tim$ pip install -U pip
    Collecting pip
    Using cached pip-6.1.0-py2.py3-none-any.whl
    Installing collected packages: pip
    Found existing installation: pip 1.5.6
      Uninstalling pip-1.5.6:
        Successfully uninstalled pip-1.5.6
    Successfully installed pip-6.1.0
    

System configuration:
Python 2.7.9 (Homebrew)
OS X 10.10.2

@ionelmc
Copy link
Contributor

ionelmc commented Jun 5, 2015

I've seen this issue too, cause seems to be pip leaving multiple .dist-info dirs around for the same package.

@xavfernandez
Copy link
Member

Hopefully it was fixed in #3723.
If you're still facing the issue in pip 9.0.1, please re-open an issue with reproduction steps.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

3 participants