mac安装gevent报错

mac2022-06-30  22

运行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

转载于:https://www.cnblogs.com/c-x-a/p/9841903.html

相关资源:gevent和pip的安装包
最新回复(0)