当前位置:网站首页>ImportError: Unable to import required dependencies: numpy
ImportError: Unable to import required dependencies: numpy
2022-08-10 01:23:00 【切糕师学AI】
报错信息:
ImportError: Unable to import required dependencies:
numpy:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python3.8 from "E:\ProgramData\Anaconda3\python.exe"
* The NumPy version is: "1.19.2"
and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.
Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块。
报错提示其实很明显了:
The Python version is Python3.8
The Numpy version is 1.19.1
python 和 numpy 的版本不匹配。
报错原因分析:
anaconda自己安的numpy是1.19,python是3.8。两个版本不匹配,3.8应该对应1.18.2。
所以解决方案是卸载1.10安装1.18.2
解决方案:
- 打开Anaconda Prompt的命令行窗口
- 输入 pip uninstall numpy。 卸载 numpy 1.19
- pip install numpy==1.18.2。 安装numpy 1.18.2
- 成功后关闭Anaconda Prompt的命令行窗口再重新打开即可
边栏推荐
猜你喜欢
Janus实际生产案例
Chip Information|Semiconductor revenue growth expected to slow to 7%, Bluetooth chip demand still growing steadily
Process management and task management
unity 报错 Unsafe code may only appear if compiling with /unsafe. Enable “Allow ‘unsafe‘ code“ in Pla
51单片机驱动HMI串口屏,串口屏的下载方式
Unity image使用长图后 图片很糊
RESOURCE_EXHAUSTED: etcdserver: mvcc: database space exceeded
Teach you how to write performance test cases
【web渗透】SSRF漏洞超详细讲解
[网鼎杯 2020 青龙组]AreUSerialz
随机推荐
华为HCIE云计算之FC添加ipsan数据存储
使用IDEA的PUSH常见问题
【SSRF漏洞】实战演示 超详细讲解
2022年8月1日-8月7日(本周10小时,合计1422小时,剩余8578小时)
【wpf】拖拽的简单实现
对修饰器的实验支持功能在将来的版本中可能更改。在 “tsconfig“ 或 “jsconfig“ 中设置 “experimentalDecorators“ 选项以删除此警告
已备案域名用国外服务器会不会掉备案?
为什么字符串一旦创建就不可以改变?
JCMsuite—单模光纤传播模式
SonarQube升级记录:7.8->7.9->8.9
小程序开发的报价为什么有差别?需要多少钱?
DP 优化方法合集
《GB39732-2020》PDF下载
防勒索病毒现状分析
用于X射线光学器件的哈特曼波前传感器
Initial attempt at UI traversal
【UNR #6 B】机器人表演(DP)
Entity FrameWork Core教程,从基础应用到原理实战
Experimental support for decorators may change in future releases.Set the "experimentalDecorators" option in "tsconfig" or "jsconfig" to remove this warning
egg.js中Class constructor BaseContextClass cannot be invoked without ‘new‘解决方法