Pyinstaller ImportError:DLL加载失败:找不到指定的模块

Posted

技术标签:

【中文标题】Pyinstaller ImportError:DLL加载失败:找不到指定的模块【英文标题】:Pyinstaller ImportError: DLL load failed: The specified module could not be found 【发布时间】:2017-08-14 09:18:29 【问题描述】:

您好,我已经使用 pip 安装了 piinstaler,一切正常。但是当我什至尝试使用pyinstaller --version 时,我收到错误:

    Traceback (most recent call last):
  File "C:\Python35\Scripts\pyinstaller-script.py", line 11, in <module>
    load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 564, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2662, in load_entry_point
    return ep.load()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2316, in load
    return self.resolve()
  File "c:\python35\lib\site-packages\pkg_resources\__init__.py", line 2322, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  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", line 32, in <module>
    from ..depend import bindepend
  File "c:\python35\lib\site-packages\PyInstaller\depend\bindepend.py", line 38, 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 _win32sysloader
ImportError: DLL load failed:  The specified module could not be found.
Python 3.5.4 32 位(使用 python --version 时显示) Windows 10 64 位 PyQt 5

pyinstaler 的所有模块也已安装。

【问题讨论】:

【参考方案1】:

我有 python 64 位,对不起我的错误

【讨论】:

以上是关于Pyinstaller ImportError:DLL加载失败:找不到指定的模块的主要内容,如果未能解决你的问题,请参考以下文章

ImportError: No module named 'xlsxwriter' - 当我使用 Pyinstaller 打包程序时

Pyinstaller 不工作 - ImportError: Module 'pywintypes' is not in freeze sys.path

ImportError: numpy.core.multiarray failed to import [cv2, matplotlib, PyTorch, pyinstaller ]

ImportError: numpy.core.multiarray failed to import [cv2, matplotlib, PyTorch, pyinstaller ]

Pyinstaller ImportError:DLL加载失败:找不到指定的模块

PyInstaller 与 Python:3.10.0b4 - ImportError:没有名为 _bootlocale 的模块