Upgrading Python module in OSX El Capitan

[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

Upgrading Python module in OSX El Capitan
Build a Python environment with OSX El capitan
[Python] logging in your own module
Install python3 on Mac (El Capitan)
Python unittest module execution in vs2017
Master the weakref module in Python
Implementation module "deque" in queue and Python
Comparison of Japanese conversion module in Python3
Module to generate word N-gram in Python
ModuleNotFoundError in Python: No module named story
Module import and exception handling in python
Install the Python module in any directory
Import Error in Python3: No module named'xxxxx'
Quadtree in Python --2
Python in optimization
CURL in python
Metaprogramming in Python
Python 3.3 in Anaconda
Geocoding in python
SendKeys in Python
Put python xgboost in max osx (llvm version)
Meta-analysis in Python
Python module import
Unittest in python
Epoch in Python
ModuleNotFoundError: No module named'_bz2' error in pyenv Python
Sudoku in Python
DCI in Python
quicksort in python
nCr in python
N-Gram in Python
Programming in python
Plink in Python
Constant in python
To add a module to python put in Julialang
Lifegame in Python.
FizzBuzz in Python
Sqlite in python
StepAIC in Python
I tried adding a Python3 module in C
N-gram in python
LINE-Bot [0] in Python
Csv in python
Disassemble in Python
Reflection in Python
Import cv2 ModuleNotFoundError: No module named'cv2' in python3
Constant in python
Python collections module
nCr in Python.
format in python
PPAP in Python
Quad-tree in Python
Reflection in Python
Chemistry in Python
Hashable in python
DirectLiNGAM in Python
LiNGAM in Python
Flatten in python
Run Qiita API v2 Python wrapper in Python3 environment (Mac OS X 10.11 (El Capitan))
flatten in python
[python] Get the list of classes defined in the module