mac下python导入以太坊web3库时出现cytoolz相关错误

导入web3出现cytoolz相关错误,于是就接着pip3 install cytoolz,出现很多错误,结尾出现类似如下的错误。在网上找了两天都没找到原因。偶然间查到了原因,应该是跟mac系统升级了有关系,因为我以前装过老版本的cytoolz,没问题。

git: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!

git: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch

ERROR: Command errored out with exit status 71(或者73,错误我没完整保存):


解决方法:

sudo xcode-select --switch /Library/Developer/CommandLineTools/

再pip3 install cytoolz.

成功,没有任何错误!

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容