玩蛇网提供最新Python编程技术信息以及Python资源下载!

python multiarray 模块问题

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,求指导

安装了matplotlib之后就好了。

玩蛇网文章,转载请注明出处和文章网址:https://www.iplaypy.com/wenda/wd13943.html

相关文章 Recommend

玩蛇网Python互助QQ群,欢迎加入-->: 106381465 玩蛇网Python新手群
修订日期:2017年05月24日 - 17时37分43秒 发布自玩蛇网

您现在的位置: 玩蛇网首页 > Python问题解答 > 正文内容
我要分享到:

必知PYTHON教程 Must Know PYTHON Tutorials

必知PYTHON模块 Must Know PYTHON Modules