Mac OS X’s default python is installed as a framework. Under the framework directory, there is an ‘Extras’ directory and six package is already placed there.
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six.py
According to the description
(https://github.com/MacPython/wiki/wiki/Which-Python), /System/Library/Frameworks/Python.framework/Versions/2.7/Extras is listed before /Library/Python/2.7/site-packages in module search path. This means all packages already exists in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras can’t upgrade.
也许是由于这个原因,没法直接用Pip升级
解决方法:
What worked for me was to use easy_install instead of pip.
easy_install -U six
Easy_install managed to upgrade the package even when pip failed.
https://stackoverflow.com/questions/29485741/unable-to-upgrade-python-six-package-in-mac-osx-10-10-2