当前位置:网站首页>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的命令行窗口再重新打开即可
边栏推荐
- 在蓝图中给组件动态加子Actor组件
- [论文阅读] Diverse Image-to-Image Translation via Disentangled Representations
- 高并发+海量数据下如何实现系统解耦?【下】
- Janus actual production case
- Web性能测试模型小结
- 【UNR #6 B】机器人表演(DP)
- 手把手教你编写性能测试用例
- The shell specifies the parameter name to pass the parameter
- 对修饰器的实验支持功能在将来的版本中可能更改。在 “tsconfig“ 或 “jsconfig“ 中设置 “experimentalDecorators“ 选项以删除此警告
- 【kali-密码攻击】(5.2.1)密码分析:Hash Identifier(哈希识别)
猜你喜欢

Under pressure, there must be cowards

UI遍历的初步尝试

xss的DOMPurify过滤框架:一个循环问题以及两个循环问题

Unity image使用长图后 图片很糊

不是吧,连公司里的卷王写代码都复制粘贴,这合理?

Shader Graph学习各种特效案例

Chip Information|Semiconductor revenue growth expected to slow to 7%, Bluetooth chip demand still growing steadily

用于X射线光学器件的哈特曼波前传感器

微透镜阵列的高级模拟

Linux(Centos7)服务器中配置Mysql主从数据库,以及数据库的安装,防火墙操作
随机推荐
浏览器中的history详解
中英文互译在线翻译-在线翻译软件
shell指定参数名传参
[论文阅读] Diverse Image-to-Image Translation via Disentangled Representations
为什么字符串一旦创建就不可以改变?
【wpf】自定义事件总结(Action, EventHandler)
【引用计数器及学习MRC的理由 Objective-C语言】
[转] Typora_Markdown_图片标题(题注)
中文NER的SOTA:RICON
C# 单例模式
DHCP——动态主机配置协议
谷歌翻译器-谷歌翻译器软件批量自动翻译
[网鼎杯 2020 青龙组]AreUSerialz
OptiFDTD应用:纳米盘型谐振腔等离子体波导滤波器
用于X射线光学器件的哈特曼波前传感器
type-C 边充电边听歌(OTG) PD芯片方案,LDR6028 PD充电加OTG方案
手把手教你编写性能测试用例
【SSRF漏洞】实战演示 超详细讲解
hint: Updates were rejected because the tip of your current branch is behind hint: its remote counte
【Grpc】简介