简体   繁体   English

由于Win32模块,PyInstaller无法正常工作

[英]PyInstaller not working because of Win32 module

Today I installed PyInstaller using pip install pyinstaller , and the first time I try to use it I get an error. 今天我使用pip install pyinstaller ,第一次尝试使用它时出现错误。

This is the end of the Traceback: 这是Traceback的结束:

    import pywintypes
  File "c:\users\david\appdata\local\programs\python\python35\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
    __import_pywin32_system_module__("pywintypes", globals())
  File "c:\users\david\appdata\local\programs\python\python35\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__
    import _win32sysloader
ImportError: DLL load failed: The specified module could not be found.

In win32 folder there is a file _win32sysloader.pyd and in win32/lib the file pywintypes.py . win32文件夹中有一个文件_win32sysloader.pyd ,在win32/lib有文件pywintypes.py

I tried to add __init__.py file to wind32/lib containing from win32 import _win32sysloader , but it's not help. 我试图将__init__.py文件添加到包含from win32 import _win32sysloader wind32/lib中,但它没有帮助。

I got the same error. 我得到了同样的错误。 import _win32sysloader ImportError: DLL load failed: The specified module could not be found installing Microsoft Visual C++ 2010 Redistributable Package fixed the error https://github.com/pyinstaller/pyinstaller/issues/1840 import _win32sysloader ImportError: DLL load failed: The specified module could not be found安装Microsoft Visual C ++ 2010 Redistributable Package修复了错误https://github.com/pyinstaller/pyinstaller/issues/1840

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM