python import numpy right but import caffe wrong

Wrong:

from . import _tifffile
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9

Solution:

sudo apt-get purge python-numpy
sudo python2.7 -m pip install numpy

原文地址:https://www.cnblogs.com/Viewsky/p/7742582.html