pyinstaller打包错误,找不到指定程序

报错

用pyinstaller打包指定程序报错

Traceback (most recent call last):
  File "site-packages\PyInstaller\loader\rthooks\pyi_rth_win32comgenpy.py", line 47, in 
  File "d:\python37-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\win32com\__init__.py", line 5, in 
ImportError: DLL load failed: 找不到指定的程序。
[8872] Failed to execute script pyi_rth_win32comgenpy

我的环境是,win10,python3.7,pyinstaller3.5,程序中调用的包是matplotlib,pandas,numpy。尝试过更新pyinstaller,加-p参数,升级gensim等,都没用。

解决方法

改用python3.5,pip安装pyinstaller和所需要的包。问题成功解决。可能是pyinstaller目前对python3.7的支持还不太好。

你可能感兴趣的:(笔记)