成功解决mod = importlib.util.module_from_spec(spec)ImportError: DLL load failed: 找不到指定的程序。

简介: 成功解决mod = importlib.util.module_from_spec(spec)ImportError: DLL load failed: 找不到指定的程序。


目录

解决问题

解决思路

解决方法


解决问题

import pythoncom

 File "E:\Program Files\Python\Python36\lib\site-packages\pythoncom.py", line 4, in <module>

   pywintypes.__import_pywin32_system_module__("pythoncom", globals())

 File "E:\Program Files\Python\Python36\lib\site-packages\win32\lib\pywintypes.py", line 106, in __import_pywin32_system_module__

   mod = importlib.util.module_from_spec(spec)

ImportError: DLL load failed: 找不到指定的程序。

解决思路

mod=importlib.util.module\u from\u spec(spec)

导入错误:DLL加载失败:

解决方法

当前版本过高问题导致不兼容!调整至合适的版本!

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pywin32==223

哈哈,大功告成!


相关文章
|
算法框架/工具 计算机视觉 Python
成功解决module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模块。
成功解决module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模块。
成功解决module = loader.load_module(fullname) ImportError: DLL load failed: 找不到指定的模块。
|
NoSQL Python
解决gdb报错:Failed to import the site module,No module named '_sysconfigdata_m'
解决gdb报错:Failed to import the site module,No module named '_sysconfigdata_m'
415 0
|
Python
ImportError: DLL load failed while importing qhull: 找不到指定的模块。问题解决!
ImportError: DLL load failed while importing qhull: 找不到指定的模块。问题解决!
785 0
|
9月前
|
Perl
pod spec lint编译时报error: include of non-modular header inside framework module
pod spec lint编译时报error: include of non-modular header inside framework module
154 1
|
Linux
原因及解决办法:Failed to load module “canberra-gtk-module“
原因及解决办法:Failed to load module “canberra-gtk-module“
1075 0
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
|
6月前
|
关系型数据库 MySQL Linux
【Azure 应用服务】[App Service For Linux(Function) ] Python ModuleNotFoundError: No module named 'MySQLdb'
【Azure 应用服务】[App Service For Linux(Function) ] Python ModuleNotFoundError: No module named 'MySQLdb'
|
9月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
【5月更文挑战第12天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
2722 0
|
9月前
AttributeError: module 'torchaudio' has no attribute 'io'问题解决
【5月更文挑战第27天】AttributeError: module 'torchaudio' has no attribute 'io'问题解决
78 2

热门文章

最新文章