Error message
By python
using caffe
time error:
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
Traceback (most recent call last):
File "caffe/python/draw_net.py", line 8, in <module>
import caffe
File "/home/caffe/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
File "/home/caffe/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
SystemError: initialization of _caffe raised unreported exception
the reason
Already mentioned in the first error message, numpy
the version is too low .
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa
Solution
Upgradenumpy
:
~$ sudo pip install --upgrade numpy