mac 安裝gevent報錯


運行pip install gevent報錯

錯誤信息如下

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
 error: command 'gcc' failed with exit status 1

解決方案
安裝xcode

xcode-select --install

再次運行
pip install gevent安裝成功。

bogon:cxa$ pip3 install gevent
Collecting gevent
  Using cached https://files.pythonhosted.org/packages/fb/60/51e8914e51755095bb513f666fb25a9a52ed69fdda18ff199fe2041a46f3/gevent-1.3.7-cp36-cp36m-macosx_10_6_intel.whl
Collecting greenlet>=0.4.14; platform_python_implementation == "CPython" (from gevent)
  Using cached https://files.pythonhosted.org/packages/f8/e8/b30ae23b45f69aa3f024b46064c0ac8e5fcb4f22ace0dca8d6f9c8bbe5e7/greenlet-0.4.15.tar.gz
Installing collected packages: greenlet, gevent
  Running setup.py install for greenlet ... done
Successfully installed gevent-1.3.7 greenlet-0.4.15


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM