背景
Mac在python3中安装websocket时候
pip3 install websocket
出现
Running setup.py install for greenlet ... error
......<中间的就省略掉>
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
解决办法
可以看到是missing xcrun,解决办法网上说
xcode-select --install
可行,但是考虑到这个下载太慢,还有一种就是到APPLE开发者自行下载Command Line Tools for Xcode,这里不用管你的Xcode版本是多少,找个最新的下载就好。

参考:https://blog.csdn.net/lucky9322/article/details/79036877
在Mac上使用pip3安装websocket模块时遇到错误,详细描述了错误信息为missing xcrun的情况,并提供了两种解决方案,一是通过xcode-select命令安装,二是手动下载并安装Xcode的Command Line Tools。

1560

被折叠的 条评论
为什么被折叠?



