Miniconda, ImportError: DLL load failed while importing win32api
Miniconda环境中
pip install pywin32
然后使用出错
import win32api
ImportError: DLL load failed while importing win32file: The specified module could not be found.
原因是库的版本不匹配。site-packages\\win32\\win32api.pyd
与如下的Conda base环境中两个.dll不匹配。
pythoncom38.dll
pywintypes38.dll
解决方法:
- 换成conda安装你想要的版本:
conda install [-c conda-forge] pywin32==xxx
- pip重装安装与Conda base环境中pywin32版本一样的包。
python path\to\python\Scripts\pywin32_postinstall.py -install
应该是要Administrator权限,主要应该就是将.dll复制到系统对应位置,没试过。
Miniconda, ImportError: DLL load failed while importing win32api相关推荐
- ImportError: DLL load failed while importing win32api
今天在装jupyterlab环境的时候,老是跳出ImportError: DLL load failed while importing win32api: 找不到指定的模块. 我找到了网上的方法试了 ...
- Django终端运行报错:ImportError: DLL load failed while importing _sqlite3: 找不到指定的模块。
在pycharm运行没问题,但是在终端cmd或Powershell就会出错,如下: Traceback (most recent call last):File ".\manage.py&q ...
- from PyQt6 import QtCore, QtGui, QtWidgets ImportError: DLL load failed while importing QtGui:
from PyQt6 import QtCore, QtGui, QtWidgets ImportError: DLL load failed while importing QtGui: 找不到指定 ...
- ImportError: DLL load failed while importing _openmp_helpers: 拒绝访问。sklearn库拒绝访问
在运行以下的代码时,这两个代码全都报了这个错误 from sklearn.metrics import mean_squared_errorfrom sklearn.preprocessing imp ...
- ImportError: DLL load failed while importing _multiarray_umath: 找不到指定的模块(pyinstaller打包的问题)
本人环境配置: RTX3060 Win10 cuda11.1 Python3.8 Pytorch1.7.1 问题描述 本人需要将有导入torch包的python文件通过pyinstaller打包生成e ...
- 使用wxauto出现ImportError: DLL load failed while importing win32gui: 找不到指定的程序报错的解决方案
文章目录 背景 错误提示 解决方案 建议关注我的 微信公众号:破壳Ai,分享最佳学习路径.教程和资源.成长路上,我陪你. 背景 利用 wxauto 开发微信机器人,Pycharm 中运行程序时出错 错 ...
- ImportError: DLL load failed while importing _ctypes conda
更新conda环境conda update -n base conda 在更新的过程中报错ImportError: DLL load failed while importing _ctypes,网上 ...
- 【问题记录】ImportError: DLL load failed while importing _imaging: 找不到指定的模块
在 windows 上使用 matplotlib 包的时候报错如下: ImportError: DLL load failed while importing _imaging: 找不到指定的模块. ...
- 【踩坑记录】python环境已经安装win32api的前提下,仍报DLL load failed while importing win32api的解决方法
目录 1 背景 2 解决方法 1 背景 在执行程序的时候报错误提示:DLL load failed while importing win32api: 找不到指定的程序. 2 解决方法 先检查是否安装 ...
最新文章
- Div span 标签详解
- arch linux网络配置,关于archlinux网络的 配置
- django render_2020年最新Django经典面试问题与答案汇总(下)大江狗整理
- 机器学习实战之logistic回归分类
- php操作redis_PHP操作Redis的基本方法
- Hexo 入门指南(二) - 安装、初始化和配置
- Android 系统(55)---Android App开发之ANR异常的原因分析及处理总结
- 异常处理-trycatch
- 「管理数学基础」4.2 模糊数学:扩张原理、模糊数、可能性分布与模糊概率
- qt deleterLater
- 3、FFmpeg 过滤器
- websocket与下位机通过netty方式通信传输行为信息
- vb rs.recordCount=-1的解决办法
- 该怎么把光纤接入家里预埋的网线中?
- 用python完成最基础ems项目
- 美国硕士计算机机械专业排名,工科“三巨头”之一-机械工程的美国硕士申请全解答...
- 硬盘的IDE和串口什么意思
- 花氏族谱(花姓族谱)
- OpenCV开发笔记(四十六):红胖子8分钟带你深入了解仿射变化(图文并茂+浅显易懂+程序源码)
- 【个人研究】21世纪西方运用脑电(EEG)的音乐研究动向分析(二)
热门文章
- zke电池测试 软件,EBC-X系列电池测试仪使用说明.pdf
- 服务器 进 pe系统安装系统安装系统,用U盘安装系统之PE安装.doc
- 编程大佬是否能记住代码?
- VMware:继续使用 Adob​​e Flash 管理您的 vCenter
- vue分享到qq,qq空间,微信,微博等
- web端网页qq好友 qq空间 微信 微博分享
- webpack - 基础配置教程
- IT 基础设施趋势合集 | 多云、超融合、SDS、容器之趋势解读与政策分析
- 数据分析系列:绩效(效率)评价与python实现(层析分析、topsis、DEA)
- 西门子simens电脑模拟 828D840D 仿真