如何解决在macOS10.15.6
我跑步时
pip install scikit-sparse
在终端中,安装失败并显示以下错误:
/Users/daniel/dev/transportMaps/tm_ls/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: "Using deprecated NumPy API,disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API,disable it with " \
^
In file included from sksparse/cholmod.c:612:
sksparse/cholmod_backward_compatible.h:1:10: fatal error: 'cholmod.h' file not found
#include "cholmod.h"
^~~~~~~~~~~
1 warning and 1 error generated.
error: command 'xcrun' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for scikit-sparse
Running setup.py clean for scikit-sparse
Failed to build scikit-sparse
如果需要,我可以发布完整的消息,但是很长。在此之前,我已经设置了虚拟环境,并且仅运行以下命令:
brew install llvm
brew install gfortran
brew install python3
pip install --upgrade pip
pip install --upgrade numpy
鉴于错误的'xcrun'组件,我认为这与Xcode有关?只有我没有安装/从未使用过。
请让我知道是否可以提供其他信息来澄清此问题!谢谢!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。