caffe出错:RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa

Error message

By pythonusing caffetime 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, numpythe 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

Guess you like

Origin blog.csdn.net/qq_29695701/article/details/100540861