mac下pip install pyahocorasick报错

mac下pip install pyahocorasick报错,下载pyahocorasick-1.4.0.tar.gz压缩文件,加压,终端运行python setup.py install

报错
running install
running bdist_egg
running egg_info
writing pyahocorasick.egg-info/PKG-INFO
writing dependency_links to pyahocorasick.egg-info/dependency_links.txt
writing top-level names to pyahocorasick.egg-info/top_level.txt
reading manifest file ‘pyahocorasick.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
warning: no files found matching ‘travis.yml’
writing manifest file ‘pyahocorasick.egg-info/SOURCES.txt’
installing library code to build/bdist.macosx-10.7-x86_64/egg
running install_lib
running build_ext
building ‘ahocorasick’ extension
creating build
creating build/temp.macosx-10.7-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/a542/anaconda3/include -arch x86_64 -I/Users/a542/anaconda3/include -arch x86_64 -DAHOCORASICK_UNICODE= -I/Users/a542/anaconda3/include/python3.7m -c pyahocorasick.c -o build/temp.macosx-10.7-x86_64-3.7/pyahocorasick.o
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-select --install安装xcode
再运行python setup.py install
ok了

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值