Python 无法在raspi3b导入中导入sklearn错误:numpy.core.multiarray导入失败

Python 无法在raspi3b导入中导入sklearn错误:numpy.core.multiarray导入失败,python,python-3.x,numpy,scikit-learn,Python,Python 3.x,Numpy,Scikit Learn,我在我的raspi中使用python3。我无法让SKL学会在代码中工作或正确导入PPR。我已经尝试卸载我的raspi上的所有numpy版本。然后只使用:sudo-apt-get-install-python3numpy在python3中安装numpy,但我仍然无法让它工作。请帮助我每个人:( 提前谢谢你 这是导入sklearn时错误的回溯 >>> import sklearn Traceback (most recent call last): File "__init

我在我的raspi中使用python3。我无法让SKL学会在代码中工作或正确导入PPR。我已经尝试卸载我的raspi上的所有numpy版本。然后只使用:sudo-apt-get-install-python3numpy在python3中安装numpy,但我仍然无法让它工作。请帮助我每个人:(

提前谢谢你

这是导入sklearn时错误的回溯

>>> 

import sklearn
Traceback (most recent call last):
  File "__init__.pxd", line 987, in numpy.import_array
RuntimeError: module compiled against API version 0xb but this version of numpy is 0xa

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.5/dist-packages/sklearn/__init__.py", line 134, in <module>
    from .base import clone
  File "/usr/local/lib/python3.5/dist-packages/sklearn/base.py", line 13, in <module>
    from .utils.fixes import signature
  File "/usr/local/lib/python3.5/dist-packages/sklearn/utils/__init__.py", line 10, in <module>
    from .murmurhash import murmurhash3_32
  File "sklearn/utils/murmurhash.pyx", line 26, in init sklearn.utils.murmurhash
  File "__init__.pxd", line 989, in numpy.import_array
ImportError: numpy.core.multiarray failed to import
>
导入sklearn
回溯(最近一次呼叫最后一次):
文件“\uuuu init\uuuuu.pxd”,第987行,在numpy.import\u数组中
RuntimeError:根据API版本0xb编译模块,但此版本的numpy是0xa
在处理上述异常期间,发生了另一个异常:
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“/usr/local/lib/python3.5/dist-packages/sklearn/_init__.py”,第134行,在
从.base导入克隆
文件“/usr/local/lib/python3.5/dist-packages/sklearn/base.py”,第13行,在
from.utils.fixes导入签名
文件“/usr/local/lib/python3.5/dist-packages/sklearn/utils/__-init__.py”,第10行,在
from.murrushash导入murrushash 3_32
文件“sklearn/utils/murrushash.pyx”,第26行,位于init sklearn.utils.murrushash中
文件“\uuuu init\uuuuu.pxd”,第989行,在numpy.import\u数组中
ImportError:numpy.core.multiarray导入失败