python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory

ubuntu@ubuntu-ST-KN:~$ cd caffe
ubuntu@ubuntu-ST-KN:~/caffe$ sudo make pycaffe -j8
[sudo] password for ubuntu:
touch python/caffe/proto/__init__.py
CXX/LD -o python/caffe/_caffe.so python/caffe/_caffe.cpp
PROTOC (python) src/caffe/proto/caffe.proto
python/caffe/_caffe.cpp:10:31: fatal error: numpy/arrayobject.h: No such file or directory
compilation terminated.
Makefile:519: recipe for target 'python/caffe/_caffe.so' failed
make: *** [python/caffe/_caffe.so] Error 1

解决方法:

需要安装 python-numpy
ubuntu@ubuntu-ST-KN:~/caffe$ sudo apt-get install python-numpy

猜你喜欢

转载自blog.csdn.net/sinat_23619409/article/details/85922727
今日推荐