成功解决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

哈哈,大功告成!


相关文章
|
2月前
报错/ ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2)怎么解决?
报错/ ./node_modules/axios/lib/platform/index.js Module parse failed: Unexpected token (5:2)怎么解决?
|
网络协议 机器人 Python
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'
|
5天前
【解决方案】pytion 运行时提示 import psutil ModuleNotFoundError: No module named ‘psutil‘
【解决方案】pytion 运行时提示 import psutil ModuleNotFoundError: No module named ‘psutil‘
8 2
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extension.
|
2月前
|
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
26 1
|
2月前
|
机器学习/深度学习 并行计算 安全
ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
【5月更文挑战第12天】ImportError: DLL load failed while importing libpaddle: 找不到指定的模块。问题处理
383 0
|
12月前
|
Python
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
【已解决!】ImportError: cannot import name ‘ProjectModelSerializer‘ from partially initialized module ‘pr
|
网络安全 Python Windows
ImportError: DLL load failed while importing _ssl: 找不到指定的模块。
找到Anaconda3\pkgs\python-3.8.12-h900ac77_2_cpython\DLLs下的_ssl.pyd文件,查阅在该环境上安装的python版本号,下载python寻找对应的_ssl.pyd覆盖到上述目录中,即可解决问题。
663 0
|
Python
unable to import 'smart_open.gcs', disabling that module
unable to import 'smart_open.gcs', disabling that module
86 0
|
Linux
原因及解决办法:Failed to load module “canberra-gtk-module“
原因及解决办法:Failed to load module “canberra-gtk-module“
492 0