[Summary] In OSX El Capitan Python, if sudo pip --upgrade
fails, remove an older version /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
It may be because you are trying, in which case you can work around it by using ʻeasy_install --upgrade` instead.
To manage Python module globally, basically you want to do:
sudo easy_install pip
sudo pip install ...
However, pip tries to remove old version when executed with --upgrade
.
This behavior is also the same on /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/
, which is quite annoying with rootless.
In this case, easy_install --upgrade
can be used as a workaround. Once after upgrading, pip do not complain anymore.
PS
Recommended Posts