python - multiarray 模块问题
PHP中文网
PHP中文网 2017-04-18 10:21:23
0
1
1333
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\core\__init__.py", line 16, in <module>
    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 <module>
    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 <module>
    from ml import createModel, getModel, getModelType
  File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\__init__.py", line 2, in <module>
    from ml.classification import getClassifierByName, getClassifierNames
  File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\classification\__init__.py", line 2, in <module>
    from ml.classification import knn, svm, bayes
  File "C:\Users\Administrator\Desktop\dataplay2-master\dataplay2-master\package\ml\classification\knn.py", line 1, in <module>
    from sklearn.neighbors import KNeighborsClassifier
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sklearn\__init__.py", line 57, in <module>
    from .base import clone
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\site-packages\sklearn\base.py", line 9, in <module>
    import numpy as np
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\__init__.py", line 142, in <module>
    from . import add_newdocs
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\add_newdocs.py", line 13, in <module>
    from numpy.lib import add_newdoc
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\lib\__init__.py", line 8, in <module>
    from .type_check import *
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\lib\type_check.py", line 11, in <module>
    import numpy.core.numeric as _nx
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python35-32\lib\numpy\core\__init__.py", line 24, in <module>
    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之後就好了。

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板