Pyinstaller won't run. "ImportError: DLL load failed" #1840

本文介绍了在Windows环境下使用Python 3.5安装PyInstaller 3.1.1及3.2.dev版本遇到的问题,当尝试运行PyInstaller时出现DLL加载失败错误。问题可能与_pywin32_system_module相关,并提供了安装pywin32作为解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

I installed pyinstaller 3.1.1 and even tried the 3.2.dev build but neither seem to work. I am on Windows and I have python 3.5 installed. Any time I try to run pyinstaller I receive the following:

C:\Windows\system32>pyinstaller
Traceback (most recent call last):
  File "c:\python35\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python35\Scripts\pyinstaller.exe\__main__.py", line 5, in <module>
  File "c:\python35\lib\site-packages\PyInstaller\__main__.py", line 21, in <mod
ule>
    import PyInstaller.building.build_main
  File "c:\python35\lib\site-packages\PyInstaller\building\build_main.py", line
32, in <module>
    from ..depend import bindepend
  File "c:\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 42,
 in <module>
    from ..utils.win32.winmanifest import RT_MANIFEST
  File "c:\python35\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", l
ine 97, in <module>
    from PyInstaller.utils.win32 import winresource
  File "c:\python35\lib\site-packages\PyInstaller\utils\win32\winresource.py", l
ine 20, in <module>
    import pywintypes
  File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 124, in <mo
dule>
    __import_pywin32_system_module__("pywintypes", globals())
  File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 64, in __im
port_pywin32_system_module__
    import _win32sysloader
ImportError: DLL load failed: The specified module could not be found.

Is the problem with the _win32sysloader.pyd? If so, I know I have the file located under the following directory: C:\Python35\Lib\site-packages\win32.



解决办法

安装pywin32



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值