无法在Mac OS X 10.10.2中升级python 6软件包 [英] Unable to upgrade python six package in mac osx 10.10.2
问题描述
我正在尝试安装六个Python软件包的最新版本,但存在以下问题.在Mac OSX 10.10.2中无法摆脱六个1.4.1
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 --upgrade
Requirement already up-to-date: six in /Library/Python/2.7/site-packages
Cleaning up...
pip search six
six - Python 2 and 3 compatibility utilities
INSTALLED: 1.9.0 (latest)
python -c "import six; print six.version"
1.4.1
which -a python
/usr/bin/python
which -a pip
/usr/local/bin/pip
这是怎么了?无法升级六个!
What is wrong here? Can't upgrade six!
推荐答案
Mac OS X的默认python作为框架安装.
在framework目录下,有一个"Extras"目录,并且six
包已放置在其中.
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
根据说明( https://github.com/MacPython/wiki/wiki /Which-Python ),在模块搜索路径中/Library/Python/2.7/site-packages
之前列出/System/Library/Frameworks/Python.framework/Versions/2.7/Extras
.
这意味着/System/Library/Frameworks/Python.framework/Versions/2.7/Extras
中已经存在的所有软件包都无法升级.
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.
也许您应该手动安装python,而不要使用默认的python.
Maybe you should install python manually and not to use default python.
这篇关于无法在Mac OS X 10.10.2中升级python 6软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!