從描述的圖片中,您未能安裝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,我現在已經修復了它。
你是否按照錯誤消息中的建議? _「如果用sudo執行pip,你可能需要sudo的-H標誌_ –
yean,我有sudo pip install pip --upgrade;然後,sudo -H pip安裝greenlet,它仍然不允許操作[link](http://77fya2.com1.z0.glb.clouddn.com/33.png) – WeirdBird