Unable to upgrade python six package in mac osx 10.10.2

前端 未结 10 1966
情书的邮戳
情书的邮戳 2020-12-08 20:21

I am trying to install latest version of six python package but I have following issues. Can\'t get rid of six 1.4.1 in mac OSX 10.10.2

sudo pip install six          


        
10条回答
  •  旧巷少年郎
    2020-12-08 21:20

    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.

    Maybe you should install python manually and not to use default python.

提交回复
热议问题