python - multiarray 模块问题
问题描述
Traceback (most recent call last): File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpycore__init__.py', line 16, in <module> from . import multiarrayImportError: cannot import name ’multiarray’
上面是错误代码,找不到模块multiarray,在PyCharm里也没找到这个包,用Anaconda这个包也是一样的报错。
C:UsersAdministratorAppDataLocalProgramsPythonPython35-32python.exe C:/Users/Administrator/Desktop/dataplay2-master/dataplay2-master/package/main.pyTraceback (most recent call last): File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpycore__init__.py', line 16, in <module> from numpy.core import multiarrayImportError: 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:UsersAdministratorDesktopdataplay2-masterdataplay2-masterpackageml__init__.py', line 2, in <module> from ml.classification import getClassifierByName, getClassifierNames File 'C:UsersAdministratorDesktopdataplay2-masterdataplay2-masterpackagemlclassification__init__.py', line 2, in <module> from ml.classification import knn, svm, bayes File 'C:UsersAdministratorDesktopdataplay2-masterdataplay2-masterpackagemlclassificationknn.py', line 1, in <module> from sklearn.neighbors import KNeighborsClassifier File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libsite-packagessklearn__init__.py', line 57, in <module> from .base import clone File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libsite-packagessklearnbase.py', line 9, in <module> import numpy as np File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpy__init__.py', line 142, in <module> from . import add_newdocs File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpyadd_newdocs.py', line 13, in <module> from numpy.lib import add_newdoc File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpylib__init__.py', line 8, in <module> from .type_check import * File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpylibtype_check.py', line 11, in <module> import numpy.core.numeric as _nx File 'C:UsersAdministratorAppDataLocalProgramsPythonPython35-32libnumpycore__init__.py', line 24, in <module> raise ImportError(msg)ImportError: Importing the multiarray numpy extension module failed. Mostlikely you are trying to import a failed build of numpy.If you’re working with a numpy git repo, try `git clean -xdf` (removes allfiles not under version control). Otherwise reinstall numpy.
上面是完整的错误代码已经安装了numpy、scipy,求指导
问题解答
回答1:安装了matplotlib之后就好了。
相关文章:
1. mysql - sql 中 group 和field 查询问题。2. javascript - vue 数据更新了。但是dom没有更新,,,,,如图3. html5 - 百度Ueditor代码高亮和代码段滚动条冲突是怎么回事?4. css3中translate(-50%,-50%)对 transform-origin的奇葩影响?5. css - 关于input标签disabled问题6. javascript - 静态页面引公共头尾文件,js怎么写吖?7. java基础,求解答。8. 老师,layui.css无法使用,路径都是按照视频照做的,是不是还有其他步骤需要做?9. 如何调整IDEA中直接运行java程序的日志输出级别?10. 如何解决Centos下Docker服务启动无响应,且输入docker命令无响应?