通过pyinstaller编译python程序,用于Windows FixTk,Tkinter,PyQt5,PySide未找到

时间:2015-10-14 10:31:35

标签: python pyinstaller

这是在编译FixTk,Tkinter,PyQt5,PySide没有找到时如何解决它?我可以在解释器中导入FixTk,Tkinter,PyQt5,PySide。 我在win xp下编译,我也试过win 10都是32位

3525 INFO: Processing pre-find module path hook   distutils
4146 INFO: Looking for import hooks ...
4146 INFO: Processing hook   hook-distutils.py
4146 INFO: Processing hook   hook-xml.py
4226 INFO: Processing hook   hook-PIL.py
4226 INFO: Excluded import 'FixTk' not found
4226 INFO: Excluded import 'Tkinter' not found
4226 INFO: Excluded import 'PyQt5' not found
4226 INFO: Excluded import 'PySide' not found
4236 INFO: Excluded import 'PyQt4' not found
4236 INFO: Processing hook   hook-httplib.py
4236 INFO: Processing hook   hook-encodings.py
4756 INFO: Processing hook   hook-PIL.Image.py
5318 INFO: Processing hook   hook-pywintypes.py
5488 INFO: Processing hook   hook-xml.sax.py
5488 INFO: Processing hook   hook-PIL.SpiderImagePlugin.py
5488 INFO: Excluding import 'FixTk'
5488 WARNING:   Removing import 'FixTk'

5488 INFO: Excluding import 'Tkinter'

1 个答案:

答案 0 :(得分:0)

安装Pillow后,我遇到了类似的问题。我的构建工作正常。我已经解决了构建问题,包括导入FixTk'在我的Python程序中,' hiddenimports = [' FixTk']'在我的spec文件中。

其他选择是添加'排除= [' PIL']'在您的spec文件中分析。但是,您需要了解程序/应用程序将来的任何更改是否可能导致PIL(Pillow)被包含在内。