您的位置:首页技术文章
文章详情页

python - multiarray 模块问题

【字号: 日期:2022-09-14 18:00:28浏览:15作者:猪猪

问题描述

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之后就好了。

标签: Python 编程
相关文章: