每次运行我的代码时,我都会收到此错误。升级了所有三个图书馆numpy,pandas,sklearn。但仍然得到它
追踪(最近一次呼叫最后一次):
File "machinelearning1.py", line 4, in <module>
from sklearn import preprocessing
File "/usr/local/lib/python2.7/dist-packages/sklearn/__init__.py", line 57, in <module>
from .base import clone
File "/usr/local/lib/python2.7/dist-packages/sklearn/base.py", line 12, in <module>
from .utils.fixes import signature
File "/usr/local/lib/python2.7/dist-packages/sklearn/utils/__init__.py", line 10, in <module>
from .murmurhash import murmurhash3_32
File "__init__.pxd", line 155, in init sklearn.utils.murmurhash (sklearn/utils/murmurhash.c:5620)
ValueError: numpy.dtype has the wrong size, try recompiling. Expected 52, got 56