我一直在尝试在我的raspberry pi上安装python包(https://pypi.org/project/dwave-tabu/)。包的pypi页面说SWIG是安装包所必需的,所以我在pi上安装了SWIG。这是我的SWIG版本:
pi@raspberrypi:/usr/bin $ swig -version
SWIG Version 3.0.12
Compiled with g++ [armv7l-unknown-linux-gnueabihf]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
我已经下载了焦油.gz我正在这个文件上使用pip。当我使用pip3安装时,我不断得到一个SWIG错误:
error: command 'swig' failed with exit status 1
以下是整个命令输出:
pi@raspberrypi:~/Downloads $ pip3 install dwave-tabu-0.2.1.tar.gz
Processing ./dwave-tabu-0.2.1.tar.gz
Collecting numpy>=1.14 (from dwave-tabu==0.2.1)
Using cached https://www.piwheels.org/simple/numpy/numpy-1.17.4-cp35-cp35m-linux_armv7l.whl
Collecting dimod>=0.7.9 (from dwave-tabu==0.2.1)
Using cached https://www.piwheels.org/simple/dimod/dimod-0.8.18-py3-none-any.whl
Collecting six<2.0.0,>=1.10.0 (from dimod>=0.7.9->dwave-tabu==0.2.1)
Using cached
https://files.pythonhosted.org/packages/65/26/32b8464df2a97e6dd1b656ed26b2c194606c16fe163c695a
992b36c11cdf/six-1.13.0-py2.py3-none-any.whl
Building wheels for collected packages: dwave-tabu
Running setup.py bdist_wheel for dwave-tabu ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-_uakelxd-build/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
bdist_wheel -d /tmp/tmpqzac4011pip-wheel- --python-tag cp35:
running bdist_wheel
running build
running build_py
running build_ext
building 'tabu._tabu_search' extension
swigging tabu/tabu_search.i to tabu/tabu_search_wrap.cpp
swig -python -c++ -threads -o tabu/tabu_search_wrap.cpp tabu/tabu_search.i
tabu/tabu_search.i:64: Error: Unable to find 'src/tabu_search.h'
tabu/tabu_search.i:65: Error: Unable to find 'src/common.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Failed building wheel for dwave-tabu
Running setup.py clean for dwave-tabu
Failed to build dwave-tabu
Installing collected packages: numpy, six, dimod, dwave-tabu
Running setup.py install for dwave-tabu ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-_uakelxd-build/setup.py';f=getattr(tokenize, 'open', open)
(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))"
install --record /tmp/pip-c91crpwl-record/install-record.txt --single-version-externally-managed --
compile --user --prefix=:
running install
running build
running build_py
running build_ext
building 'tabu._tabu_search' extension
swigging tabu/tabu_search.i to tabu/tabu_search_wrap.cpp
swig -python -c++ -threads -o tabu/tabu_search_wrap.cpp tabu/tabu_search.i
tabu/tabu_search.i:64: Error: Unable to find 'src/tabu_search.h'
tabu/tabu_search.i:65: Error: Unable to find 'src/common.h'
error: command 'swig' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-_uakelxd-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-c91crpwl-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-_uakelxd-build/
如果有人能帮我解决这个问题,我将不胜感激 谢谢
目前没有回答
相关问题 更多 >
编程相关推荐