我尝试在MacOSMojave10.14.6的终端中使用命令sudo pip install bandmat
,它打印出:
Installing collected packages: bandmat
Running setup.py install for bandmat ... error
Complete output from command /anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-k1bqybm6/bandmat/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-q93hc_of/install-record.txt --single-version-externally-managed --compile:
然后打印完整的输出:
^{pr2}$然后打印错误:
6 warnings and 15 errors generated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-install-iisequ8k/bandmat/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/tmp/pip-record-czzey623/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-iisequ8k/bandmat/
我以前使用过sudo pip install,它使用设置.py,我见过的类似问题的解决方案是安装python dev以获取python头文件,尽管我知道python.h文件位于
-I/anaconda3/include/python3.7m
。在
我也尝试过运行sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
,但是这并没有解决问题。在
目前没有回答
相关问题 更多 >
编程相关推荐