安装好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