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

Version 8.0.2 but warning about use of version 7.1.2 #3457

Closed
Amorymeltzer opened this issue Feb 5, 2016 · 11 comments
Closed

Version 8.0.2 but warning about use of version 7.1.2 #3457

Amorymeltzer opened this issue Feb 5, 2016 · 11 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@Amorymeltzer
Copy link

Not really sure what to make of this. OSX 10.9, pip installed via macports

>  which pip
pip is /opt/local/bin/pip
pip is /usr/local/bin/pip
pip is /usr/local/bin/pip
> /opt/local/bin/pip --version
pip 8.0.2 from /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (python 2.7)version
>  /opt/local/bin/pip list
[snip]
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.

Output is the same when called via python -m pip. #3433 feels related but is above my paygrade.

@xavfernandez
Copy link
Member

What does python -c "from pip.utils import get_installed_version;print(get_installed_version('pip'))" return ?

@Amorymeltzer
Copy link
Author

7.1.2, and for good measure:

> python -c "import sys, pip; print(sys.path); print(pip.__file__)"
['', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/whitey-0.4-py2.7.egg', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cssselect-0.9.1-py2.7.egg', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages']
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip/__init__.pyc

@xavfernandez
Copy link
Member

So basically, you were using pip 8.0.2 in an environment where pip 7.1.2 is installed ?
I'm not sure we want to support such use cases...

@Amorymeltzer
Copy link
Author

Well, okay, but then I'm rather confused on how to proceed. pip install --upgrade pip fails with

Requirement already up-to-date: pip in /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
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.

@xavfernandez
Copy link
Member

What does python -c "from pkg_resources import Environment;print(Environment()['pip'])" return ?

@Amorymeltzer
Copy link
Author

> python -c "from pkg_resources import Environment;print(Environment()['pip'])"
[pip 8.0.2 (/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages), pip 7.1.2 (/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages)]

@pfmoore
Copy link
Member

pfmoore commented Feb 10, 2016

So you have both 8.0.2 and 7.1.2 installed in the same directory? That's broken. I can't say how it happened, but it's definitely not something we'd support.

@Amorymeltzer
Copy link
Author

Good enough for me, thanks! 👍

@pfmoore
Copy link
Member

pfmoore commented Feb 10, 2016

Cool. If you want to fix things up, you're probably best removing both versions of pip from that directory (you'll probably have to do that by hand) and reinstall with something like get-pip.py.

@corwin-of-amber
Copy link

Sorry for bumping, but for the sake of future generations, how does one manually remove the offending versions of pip?

@Ivoz
Copy link
Contributor

Ivoz commented Aug 5, 2016

Find the site-packages folder of that python ( pip show -f pip should help you) and remove the offending directories. pip show -f pip should also tell you the location of all files needed to completely remove it. Sometimes you may also want to remove offending installed executable scripts if they're pointing to a version that you don't want.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 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

5 participants