红联Linux门户
Linux帮助

编译nervernagpu出错[.python_install_required] Error 1

发布时间:2017-05-02 14:45:21来源:linux网站作者:haohaibo031113
安装好numpy后,编译nervernagpu出现了下面的错误:
bpl-subset/bpl_subset/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory
# include <pyconfig.h>
^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_hhb/pycuda/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KUqgua-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_hhb/pycuda
Storing debug log for failure in /home/hhb/.pip/pip.log
make: *** [.python_install_required] Error 1
 
解决方法:
sudo apt-get install python-dev
 
本文永久更新地址:http://www.linuxdiyf.com/linux/30458.html