Can';t在OSX中升级python dateutil

Can';t在OSX中升级python dateutil,python,macos,numpy,pip,python-dateutil,Python,Macos,Numpy,Pip,Python Dateutil,我正在尝试在OSX上安装Sphinx,希望最终能将其纳入网站,如下所示: 我一直在进行macporting、homebrewing、python wheelin,弄清楚什么是虚拟电视。。。弄清楚我应该使用Python2.7还是3.X(我没弄清楚) 我将此添加到我的bash配置文件中: export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages 当我运行此命令时: python -c "import sys; prin

我正在尝试在OSX上安装Sphinx,希望最终能将其纳入网站,如下所示:

我一直在进行macporting、homebrewing、python wheelin,弄清楚什么是虚拟电视。。。弄清楚我应该使用Python2.7还是3.X(我没弄清楚)

我将此添加到我的bash配置文件中:

export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages
当我运行此命令时:

python -c "import sys; print('\n'.join(sys.path))"
我原以为它只返回
/usr/local/lib/python2.7/site包

但它说:

/Library/Python/2.7/site-packages/pip-10.0.0b2-py2.7.egg
/Library/Python/2.7/site-packages/virtualenv-15.2.0-py2.7.egg
/Users/nook
/usr/local/lib/python2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/nook/Library/Python/2.7/lib/python/site-packages
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
sudo pip install python-dateutil 
Password:
The directory '/Users/nick/Library/Caches/pip/http' or its parent directory is 
not owned by the current user and the cache has been disabled. Please check 
the permissions and owner of that directory. If executing pip with sudo, you 
may want sudo's -H flag.
The directory '/Users/nick/Library/Caches/pip' or its parent directory is not 
owned by the current user and caching wheels has been disabled. check the 
permissions and owner of that directory. If executing pip with sudo, you may 
want sudo's -H flag.
Requirement already satisfied: python-dateutil in 
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python 
(1.5)
pandas 0.22.0 has requirement numpy>=1.9.0, but you'll have numpy 1.8.0rc1 
which is incompatible.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 
which is incompatible.
jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have 
python-dateutil 1.5 which is incompatible.
无论如何,我最终得到了一个virtualenv设置,并运行了以下命令:

pip install sphinx
我找出了一个小错误,另一个错误是六个。但我无法摆脱以下错误:

jupyter-client 5.2.3 has requirement python-dateutil>=2.1,
but you'll have python-dateutil 1.5 which is incompatible.
当我运行以下命令时:

pip install python-dateutil --upgrade --ignore-installed
我明白了

看起来不错

但当我再次尝试安装斯芬克斯时,我得到了同样的结果

jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have 
python-dateutil 1.5 which is incompatible.
所以我进去试了以下命令:

sudo rm -rf /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/python_dateutil-1.5-py2.7.egg-info/
我想删除那个目录,到NumPy目录,和另一个dateutil目录…但不能!我没有权限

如果有人对我的sphinx站点使用哪一版本的python(最新版本?)以及如何使用**该版本的python设置虚拟环境有专业的建议,请了解Numpty和dateutil。。。我将永远欠你的债

编辑:刚刚尝试了以下操作:

/Library/Python/2.7/site-packages/pip-10.0.0b2-py2.7.egg
/Library/Python/2.7/site-packages/virtualenv-15.2.0-py2.7.egg
/Users/nook
/usr/local/lib/python2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Users/nook/Library/Python/2.7/lib/python/site-packages
/Library/Python/2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
sudo pip install python-dateutil 
Password:
The directory '/Users/nick/Library/Caches/pip/http' or its parent directory is 
not owned by the current user and the cache has been disabled. Please check 
the permissions and owner of that directory. If executing pip with sudo, you 
may want sudo's -H flag.
The directory '/Users/nick/Library/Caches/pip' or its parent directory is not 
owned by the current user and caching wheels has been disabled. check the 
permissions and owner of that directory. If executing pip with sudo, you may 
want sudo's -H flag.
Requirement already satisfied: python-dateutil in 
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python 
(1.5)
pandas 0.22.0 has requirement numpy>=1.9.0, but you'll have numpy 1.8.0rc1 
which is incompatible.
matplotlib 1.3.1 has requirement numpy>=1.5, but you'll have numpy 1.8.0rc1 
which is incompatible.
jupyter-client 5.2.3 has requirement python-dateutil>=2.1, but you'll have 
python-dateutil 1.5 which is incompatible.

你可以看到我的numpy也是完全预算的,1.8.0rc1。谢谢。

我猜当安装
python-dateutil
时,无论
pip
指向什么,都是在尝试安装
sphinx
时在其他地方安装软件包。也许可以创建一个干净的virtualenv,激活它,一旦激活,pip就会安装sphinx。嗨,保罗,谢谢。创建virtualenv时应该使用哪些“开关”?我如何确认软件包安装在正确的位置?我试过这个。。。“virtualenv--分发--无网站包captaincoin”