我安装了Pyinstaller,但是当我以管理员身份在CMD中键入pyinstaller时,它将输出以下内容:

C:\Users\Kuba>pyinstaller
Traceback (most recent call last):
  File "C:\Users\Kuba\AppData\Local\Programs\Python\Python35-32\Scripts\pyinstaller-script.py", line 11, in <module>
    load_entry_point('PyInstaller==3.2', 'console_scripts', 'pyinstaller')()
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 564, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2608, in load_entry_point
    return ep.load()
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2268, in load
    return self.resolve()
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\pkg_resources\__init__.py", line 2274, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\__main__.py", line 21, in <module>
    import PyInstaller.building.build_main
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 32, in <module>
    from ..depend import bindepend
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\depend\bindepend.py", line 38, in <module>
    from ..utils.win32.winmanifest import RT_MANIFEST
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\utils\win32\winmanifest.py", line 97, in <module>
    from PyInstaller.utils.win32 import winresource
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\utils\win32\winresource.py", line 20, in <module>
    import pywintypes
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\win32\lib\pywintypes.py", line 124, in <module>
    __import_pywin32_system_module__("pywintypes", globals())
  File "c:\users\kuba\appdata\local\programs\python\python35-32\lib\site-packages\win32\lib\pywintypes.py", line 64, in __import_pywin32_system_module__
    import _win32sysloader
ImportError: DLL load failed: Listed\xfd module not found.

最后一行已翻译,因为它是我的语言。 (ImportError: DLL load failed: Uveden\xfd modul nebyl nalezen.,在捷克语中)

有人知道该怎么做吗?

最佳答案

pyinstaller manual中所述:



尝试安装其中之一。

关于python - pyinstaller错误XFD模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40386723/

10-15 02:45