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

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值