numpy版本错误

numpy版本错误
flyfish

版本Python2.7
错误提示

RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa
RuntimeError: module compiled against API version 0xc but this version of numpy is 0xa

python

Python 2.7.12 (default, Nov 12 2018, 14:36:49) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> print numpy.__path__
['/usr/lib/python2.7/dist-packages/numpy']

重命名
sudo mv /usr/lib/python2.7/dist-packages/numpy /usr/lib/python2.7/dist-packages/numpy_old

你可能感兴趣的:(Python)