当前位置:网站首页>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的命令行窗口再重新打开即可
边栏推荐
猜你喜欢

万字总结:分布式系统的38个知识点

微透镜阵列的高级模拟

【kali-密码攻击】(5.1.2)密码在线破解:Medusa

Teach you how to write performance test cases

Under pressure, there must be cowards
![[转] Typora_Markdown_图片标题(题注)](/img/67/589eed8de86bff9fc017ae7c409410.png)
[转] Typora_Markdown_图片标题(题注)

Sikuli 基于图形识别的自动化测试技术

unity 报错 Unsafe code may only appear if compiling with /unsafe. Enable “Allow ‘unsafe‘ code“ in Pla

DHCP——动态主机配置协议
![[Turn] Typora_Markdown_ picture title (caption)](/img/67/589eed8de86bff9fc017ae7c409410.png)
[Turn] Typora_Markdown_ picture title (caption)
随机推荐
RedHat红帽RHEL7安装与使用,VMware Workstation16 Pro虚拟机的安装与使用
手把手教你编写性能测试用例
空间复杂度为O(1)的归并排序
力扣每日一题-第51天-744. 寻找比目标字母大的最小字母
Button countdown reminder
Sikuli's Automated Testing Technology Based on Pattern Recognition
color socks problem
DHCP——动态主机配置协议
【无标题】
2022年8月1日-8月7日(本周10小时,合计1422小时,剩余8578小时)
以太网PHY芯片LAN8720A芯片研究
浏览器中的history详解
Shader Graph learns various special effects cases
常用正则备查
中文NER的SOTA:RICON
Summary of Web Performance Testing Models
[网鼎杯 2020 青龙组]AreUSerialz
使用IDEA的PUSH常见问题
grafana9配置邮箱告警
C# 正则表达式分组查询