[Résumé] Dans OSX El Capitan Python, si sudo pip --upgrade
échoue, supprimez une ancienne version / System / Library / Frameworks / Python.framework / Versions / 2.7 / Extras / lib / python /
C'est peut-être parce que vous essayez, auquel cas vous pouvez contourner le problème en utilisant ʻeasy_install --upgrade` à la place.
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