python - multiarray 模块问题
PHP中文网
PHP中文网 2017-04-18 10:21:23
0
1
1235
Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\core\__init__.py", line 16, in  from . import multiarray ImportError: cannot import name 'multiarray'

上面是错误代码,找不到模块multiarray,在PyCharm里也没找到这个包,用Anaconda这个包也是一样的报错。

C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\python.exe C:/Users/Administrator/Desktop/dataplay2-master/dataplay2-master/package/main.py Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\core\__init__.py", line 16, in  from numpy.core import multiarray ImportError: cannot import name 'multiarray' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:/Users/Administrator/Desktop/dataplay2-master/dataplay2-master/package/main.py", line 10, in  from ml import createModel, getModel, getModelType File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\__init__.py", line 2, in  from ml.classification import getClassifierByName, getClassifierNames File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\classification\__init__.py", line 2, in  from ml.classification import knn, svm, bayes File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\classification\knn.py", line 1, in  from sklearn.neighbors import KNeighborsClassifier File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sklearn\__init__.py", line 57, in  from .base import clone File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sklearn\base.py", line 9, in  import numpy as np File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\__init__.py", line 142, in  from . import add_newdocs File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\add_newdocs.py", line 13, in  from numpy.lib import add_newdoc File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\lib\__init__.py", line 8, in  from .type_check import * File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\lib\type_check.py", line 11, in  import numpy.core.numeric as _nx File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\core\__init__.py", line 24, in  raise ImportError(msg) ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try `git clean -xdf` (removes all files not under version control). Otherwise reinstall numpy.

上面是完整的错误代码
已经安装了numpy、scipy,求指导

PHP中文网
PHP中文网

认证高级PHP讲师

全員に返信 (1)
黄舟

安装了matplotlib之后就好了。

いいねを押す+0
    最新のダウンロード
    詳細>
    ウェブエフェクト
    公式サイト
    サイト素材
    フロントエンドテンプレート
    私たちについて 免責事項 Sitemap
    PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!