gpt4 book ai didi

python - Py2Exe 错误 : Missing run-py3. 5-win-amd64.exe

转载 作者:太空狗 更新时间:2023-10-29 21:58:15 26 4
gpt4 key购买 nike

运行 Py2Exe 时收到以下内容:

running py2exe

12 missing Modules
------------------
? Image imported from openpyxl.drawing.image
? PIL._imagingagg imported from PIL.ImageDraw
? PyQt5 imported from PIL.ImageQt
? PySide imported from PIL.ImageQt
? _abcoll imported from openpyxl.compat.odict
? _imaging_gif imported from PIL.GifImagePlugin
? _util imported from PIL.ImageCms
? cffi imported from PIL.Image, PIL.PyAccess
? lxml imported from openpyxl.xml, openpyxl.xml.functions
? openpyxl.tests imported from openpyxl.reader.excel
? readline imported from cmd, code, pdb
? tkinter imported from PIL.ImageTk
Building 'dist\dlpreport.exe'.
error: [Errno 2] No such file or directory: 'C:\\Python\\lib\\site-packages\\py2exe\\run-py3.5-win-amd64.exe'

我假设这是因为 Py2Exe 目前是为 Python 3.4 构建的,但我想知道是否有办法强制它通过(无需安装另一个 Python 构建)。

最佳答案

如果这些模块对您的应用程序没有任何用处,那么只需在您的设置文件中添加排除命令。它会自动排除这些模块并停止发送警告。

    setup(
options={'py2exe':{'excludes':['Image','PIL._imagingagg','PyQt4',
'PyQt5','_abcoll','_imaging_gif','_util','cffi','lxml','openpyxl.tests',
'readline','tkinter']}},
)

关于python - Py2Exe 错误 : Missing run-py3. 5-win-amd64.exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35922844/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com