栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

ImportError: numpy.core.multiarray failed to import

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ImportError: numpy.core.multiarray failed to import

在进行神经网络学习中,出现了这个bug,上网查之后,明白可能是版本不符的问题

 

所以

pip uninstall numpy  ##卸载
pip install numpy  ##安装

报错

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
matplotlib 3.4.3 requires pyparsing>=2.2.1, but you have pyparsing 2.2.0 which is incompatible.
说明只安装了部分包, pyparsing需要大于等于2.2.1,而我的是2.2.0,

在pycharm中File->settting->project->python interpreter

这个位置是我们库存放的位置 。

通过文件夹看后,发现确实是这样

所以卸载安装这个库

然后安装

pip install pyparsing  ##安装

接着就能使用了

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/273315.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号