2015-10-30 112 views
-1

當我在osx 10.11.1上安裝gevent時,它有一個問題,我無法修復它。osx 10.11.1不能安裝gevent

這是我安裝

1的詳細處理:命令端口安裝的libevent

2:須藤PIP安裝greenlet

3:須藤PIP安裝GEVENT

$:須藤PIP安裝gevent

錯誤:無法創建'/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/greenlet':Operatio N不容許

Here is a detailed description of the picture

我不知道問題出在哪裏,但我有一個root權限

請幫幫我,謝謝~~

+0

你是否按照錯誤消息中的建議? _「如果用sudo執行pip,你可能需要sudo的-H標誌_ –

+0

yean,我有sudo pip install pip --upgrade;然後,sudo -H pip安裝greenlet,它仍然不允許操作[link](http://77fya2.com1.z0.glb.clouddn.com/33.png) – WeirdBird

回答

2

嘗試:

sudo easy_install gevent==1.1rc1 

但我會推薦使用virtualenv

0

從描述的圖片中,您未能安裝greenlet。您可以通過使用easy_install來解決此問題。

首先,安裝greenlet == 0.4.10

sudo easy_install greenlet==0.4.10 

結果是:

Searching for greenlet==0.4.10 
Reading https://pypi.python.org/simple/greenlet/ 
Best match: greenlet 0.4.10 
Downloading  https://pypi.python.org/packages/f2/3f/09412b656067f280cf017ce5b6465e6339089129212425111117be5557d9/greenlet-0.4.10.tar.gz#md5=5351f8ac5196a00d835c2cb1faf75270 
Processing greenlet-0.4.10.tar.gz 
Writing /tmp/easy_install-per91O/greenlet-0.4.10/setup.cfg 
Running greenlet-0.4.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-per91O/greenlet-0.4.10/egg-dist-tmp-5b4Om0 
creating /Library/Python/2.7/site-packages/greenlet-0.4.10-py2.7-macosx-10.12-intel.egg 
Extracting greenlet-0.4.10-py2.7-macosx-10.12-intel.egg to /Library/Python/2.7/site-packages 
Adding greenlet 0.4.10 to easy-install.pth file 

Installed /Library/Python/2.7/site-packages/greenlet-0.4.10-py2.7-macosx-10.12-intel.egg 
Processing dependencies for greenlet==0.4.10 
Finished processing dependencies for greenlet==0.4.10 

然後,安裝GEVENT

sudo -H pip install gevent 

我安裝時遇到同樣的問題在我的Mac上導致了Kafka,我現在已經修復了它。