[Win11] ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块 Conda无法激活环境
文章目录
- 1 报错
- 2 解决
- 参考
1 报错
Traceback (most recent call last):File "<stdin>", line 1, in <module>File "D:\python\envs\raft\lib\site-packages\numpy\__init__.py", line 140, in <module>from . import coreFile "D:\python\envs\raft\lib\site-packages\numpy\core\__init__.py", line 48, in <module>raise ImportError(msg)
ImportError: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.htmlPlease note and check the following:* The Python version is: Python3.8 from "D:\python\envs\raft\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: 找不到指定的模块
查了一些博客说配置anaconda的环境变量,可是环境变量我已经配置好了,不可能为每一个Conda中的Python环境创建一个变量,这种解决方式不可行;
由于我运行代码是在VSCode中运行的,其默认调用的终端为Windows自带的PowerShell,因此我在自带的PowerShell中运行Conda环境,并激活所要使用的Python环境,使用之后并没有出现命令行之前显示(base)
等环境名称的字样,使用python
命令不会进入Python的Shell,说明PowerShell出现了问题!
查阅资料发现,PowerShell目前只支持Conda 4.6版本,而我的版本较高为:
2 解决
安装最新的PowerShell
,参考微软官方教程:https://learn.microsoft.com/zh-cn/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3
最新版PowerShell
可以正常激活环境,并在VSCode中使用
参考
numpy:DLL load failed while importing _multiarray_umath: 找不到指定的模块: https://www.cnblogs.com/maomaozi/p/14619961.html
[Win11] PowerShell无法激活Conda虚拟环境: https://blog.csdn.net/y609532842/article/details/125988618
[Win11] ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块 Conda无法激活环境相关推荐
- ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块(pyinstaller打包的问题)
本人环境配置: RTX3060 Win10 cuda11.1 Python3.8 Pytorch1.7.1 问题描述 本人需要将有导入torch包的python文件通过pyinstaller打包生成e ...
- Original error was: DLL load failed while importing _multiarray_umath: 找不到指定的模块
Python运行异常 问题描述 During handling of the above exception, another exception occurred:Traceback (most r ...
- jupyter notebook出现DLL load failed while importing _multiarray_umath: 找不到指定的模块
安装gpu版本的pytorch之后,在pycharm上测试没出现问题而在jupyter notebook却出现问题 问题描述: import torch E:\Miniconda3\envs\d2l\ ...
- Django终端运行报错:ImportError: DLL load failed while importing _sqlite3: 找不到指定的模块。
在pycharm运行没问题,但是在终端cmd或Powershell就会出错,如下: Traceback (most recent call last):File ".\manage.py&q ...
- 【问题记录】ImportError: DLL load failed while importing _imaging: 找不到指定的模块
在 windows 上使用 matplotlib 包的时候报错如下: ImportError: DLL load failed while importing _imaging: 找不到指定的模块. ...
- 【BUG】DLL load failed while importing pyopenpose: 找不到指定的模块
问题: ImportError: DLL load failed while importing pyopenpose: 找不到指定的模块. 解决方法: 1.把build\bin里面的全部dll,复制 ...
- 使用wxauto出现ImportError: DLL load failed while importing win32gui: 找不到指定的程序报错的解决方案
文章目录 背景 错误提示 解决方案 建议关注我的 微信公众号:破壳Ai,分享最佳学习路径.教程和资源.成长路上,我陪你. 背景 利用 wxauto 开发微信机器人,Pycharm 中运行程序时出错 错 ...
- Python使用Pillow包报错 ImportError: DLL load failed while importing _imaging: 找不到指定的程序。
最近使用Python调用Pillow时报错,代码就两行: from PIL import Imageprint("PyCharm") 报错如下: Traceback (most r ...
- DLL load failed while importing _ssl: 找不到指定的模块
DLL load failed while importing _ssl: 找不到指定的模块. 解决方案 下载 libcrypto-1_1-x64和libssl-1_1-x64.zip 放到C:\Wi ...
最新文章
- 入门数据分析师,从了解元数据中心开始
- matplotlib色彩填充之fill、fill_between
- linux 查看用户信息
- Boost::context模块callcc的斐波那契测试程序
- 2020Alibaba数学竞赛预选赛第二轮参考答案
- [TOOLS] 移动端调试进行时 - whistle
- 光纤收发器元器件指标详情
- 搭建mysql集群,使用Percona XtraDB Cluster搭建
- 客户端产生CLOSE_WAIT状态的解决方案
- ie8和ie11的html代码生成,ie8升级ie11-IE11,IE8
- 微信小程序之模板的使用
- C# Wpf Binding 使用详解
- Mediawiki页面权限设置 禁止游客编辑 禁止注册
- ip地址合不合法怎么看_怎样判断IP地址的非法性?
- 1088: 手机短号 (多实例)
- 为整数线性规划(integer linear programming,ILP)
- 瑞泰口腔黄远亮院长应邀出席第十二次全国口腔种植学术大会
- 偏差代替误差进行稳态分析
- 安全系列之——数据传输的完整性、私密性、源认证、不可否认性
- usb插入检测系统、支持实时日志记录、邮箱报警