解决方法
1.命令行输入进python
import numpy as np
np.get_include()
得到numpy的安装路径:
/usr/local/lib/python2.7/dist-packages/numpy/core/include
在Makefile.config找到PYTHON_INCLUDE,发现有点不同:
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/lib/python2.7/dist-packages/numpy/core/include
要加一个local,变成:
PYTHON_INCLUDE := /usr/include/python2.7 \
/usr/local/lib/python2.7/dist-packages/numpy/core/include
再make pycaffe就ok了
2.直接安装模块 numpy
suod apt-get install python-numpy