Tag Archives: coffee

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

After completing the compilation and installation of Caffe, execute import Caffe under Python and report an error:

SystemError: initialization of _caffe raised unreported exception
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd

My solution is to modify Python in makefile.config_ The include path and numpy (1.16.6) path should be consistent with the virtual environment they use:

PYTHON_INCLUDE := /home/robot/anaconda3/include \
				  /home/robot/anaconda3/envs/zed/include/python3.5m \
				  /home/robot/anaconda3/envs/zed/lib/python3.5/site-packages/numpy/core/include