我正在尝试在 arm mac 上安装 kraken。
运行 pip install kraken
时出现错误。我已通过 rum conda isntall
.conda install 修复了一些构建错误。Mambaforge-MacOSX-arm64。
只有 clstm 构建错误无法修复。
Building wheels for collected packages: clstm
Building wheel for clstm (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/andy/Developer/mambaforge/envs/couresra-python-project/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/26/g69xm_155rnf9z8kh958wnn80000gn/T/pip-install-bnjnxpc6/clstm_27ed721893b94fbabfc1732edac2ac7c/setup.py'"'"'; __file__='"'"'/private/var/folders/26/g69xm_155rnf9z8kh958wnn80000gn/T/pip-install-bnjnxpc6/clstm_27ed721893b94fbabfc1732edac2ac7c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/26/g69xm_155rnf9z8kh958wnn80000gn/T/pip-wheel-18j3xxvi
cwd: /private/var/folders/26/g69xm_155rnf9z8kh958wnn80000gn/T/pip-install-bnjnxpc6/clstm_27ed721893b94fbabfc1732edac2ac7c/
Complete output (17 lines):
making proto file
Could not make proto path relative: clstm.proto: No such file or directory
running bdist_wheel
running build_ext
building '_clstm' extension
swigging clstm.i to clstm_wrap.cpp
swig -python -c++ -I/Users/andy/Developer/mambaforge/envs/couresra-python-project/include/python3.9 -I/Users/andy/Developer/mambaforge/envs/couresra-python-project/lib/python3.9/site-packages/numpy/core/include -o clstm_wrap.cpp clstm.i
clstm.i:35: Warning 451: Setting a const char * variable may leak memory.
creating build
creating build/temp.macosx-11.0-arm64-3.9
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/andy/Developer/mambaforge/envs/couresra-python-project/include -arch arm64 -fPIC -O2 -isystem /Users/andy/Developer/mambaforge/envs/couresra-python-project/include -arch arm64 -I/usr/include/eigen3 -I/usr/local/include/eigen3 -I/usr/local/include -I/usr/include/hdf5/serial -I/Users/andy/Developer/mambaforge/envs/couresra-python-project/include/python3.9 -I/Users/andy/Developer/mambaforge/envs/couresra-python-project/lib/python3.9/site-packages/numpy/core/include -c clstm.cc -o build/temp.macosx-11.0-arm64-3.9/clstm.o -std=c++11 -w -Dadd_raw=add -DNODISPLAY=1 -DTHROW=throw -DHGVERSION="\"unknown\""
In file included from clstm.cc:1:
./clstm.h:16:10: fatal error: 'Eigen/Dense' file not found
#include <Eigen/Dense>
^~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for clstm
Running setup.py clean for clstm
Failed to build clstm