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

来源:互联网 发布:苹果手机数据备份 编辑:程序博客网 时间:2024/06/04 18:42

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>pyinstallerTraceback (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 <module>    import PyInstaller.building.build_main  File "c:\python35\lib\site-packages\PyInstaller\building\build_main.py", line32, 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", line 97, in <module>    from PyInstaller.utils.win32 import winresource  File "c:\python35\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 20, in <module>    import pywintypes  File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>    __import_pywin32_system_module__("pywintypes", globals())  File "c:\python35\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__    import _win32sysloaderImportError: 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



0 0
原创粉丝点击