-
Notifications
You must be signed in to change notification settings - Fork 3k
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
deal with OSX "Extras" preventing upgrades #2468
Comments
It might be the same problem as in #1018. What's the output of |
The contents of ['',
'/Library/Python/2.7/site-packages/pip-6.0.8-py2.7.egg',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
'/Users/rsy/Library/Python/2.7/lib/python/site-packages',
'/usr/local/lib/python2.7/site-packages',
'/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
'/Library/Python/2.7/site-packages'
] So by specifying the environment variable |
What happens is that pip actually does upgrade numpy to version 1.9.2 (in user site-packages) but reports version of numpy which it finds looking at |
numpy 1.8.0rc1 comes preinstalled with OS X. It is in |
User site directory is defined in PEP 370 where we read:
It looks like on Mac, directory |
Talk to Apple about that. The |
|
Yes, you can use |
It seems that |
Right. You need to abuse |
Can this be fixed or patched in the |
One option is to not use the Apple-supplied Python (2.7.6 for OS X 10.10) but install a newer one: for example, the current python.org 2.7.9 or 3.4.3 installers for OS X, both of which now also install versions of Another, non-standard option is to look at Glyph's |
pip2014 is generally good stuff, and we have open issues to try and obsolete it. One of them is what to do about the fact that Apple puts it's own third party stuff in front of One option I've thought about is modifying the |
Is Apple aware (is there any public bug) that the way they are injecting Extras directory is plainly wrong and hindrance for users? I would say make it sure they know it's broken and leave it as is. This way there's at least some pressure to fix it. The simplest and cleanest way to fix this is by setting |
Setting Anyway, I personally solve this problem by switching to brewed python. But perhaps this issue should not be closed before a better solution for the general populace is found? |
pip install --user --upgrade
reports success, but does not actually upgrade
So --user --upgrade is also a problem on Ubuntu too (and they default to --user now) - can we make the title a little broader? Something like: packages that are installed in shadowed locations do not warn or error (e.g. OS X Extras, Ubuntu patched pip) |
I have the same problem with scipy, even if I upgrade to a newer version with pip and everything goes fine, when i try import scipy I still have the old version, before the update...nothing changes.... But pip list does see the new scipy version... Any hints? I'm on Yosemite 10.10.3 |
This is solved now with macOS Sierra. |
@dstufft |
Apple stopped forcing the Extras directory to be before everything and instead added an |
I'm on Sierra, and I didn't have an Extras.pth in site-packages, but I was still getting "Extras" early in my Python path. My site-packages was cluttered with tons of stuff over many years so I decided to wipe it all out and start over again. I don't know why, but that fixed my problem and I no longer have Extras on my path at all. Posting here in case it helps others. |
My operating system is OS X Yosemite with system python. I installed pip with
sudo easy_install pip
. When trying to install latest packages into the user site, it always report a fake success.For example:
So basically it downloads 1.9.2 and tells me it successfully upgrades to 1.8.0rc1. I also tried add an option
--ignore-installed
, but the same thing happens.The text was updated successfully, but these errors were encountered: