【发布时间】:2021-05-03 18:40:57
【问题描述】:
当我在 Windows 7 上运行程序时,出现以下错误:
加载 Python DLL 'C:\Users\msi\AppData\Local\Temp_MEI91442\python38.dll 时出错
'。
未生成错误消息。
FormatMessageW:Feil 参数。 (翻译:FormatMessageW:参数错误。)
LoadLibrary: PyInstaller: FormatMessageW 失败。
该程序将视频转换为文本文件,您可以通过终端播放该文件。它使用 ffmpeg 和 ffprobe,我将它们捆绑在 .exe 文件中。 .exe 文件在 Windows 10 上运行良好。
这是我作为 .txt 文件的完整代码:
https://gerhardadler.no/code.txt
使用 pyinstaller 转换为 .exe:
pyinstaller --onefile --console --icon="icon.ico" --add-data ffmpeg.exe;。 --添加数据ffprobe.exe;。代码.py
有谁知道如何解决这个问题?
【问题讨论】:
-
尝试在 windows 7 机器或虚拟机上构建包。
标签: python windows-7 pyinstaller