2015-10-14 80 views
1

編譯FixTk,Tkinter,PyQt5,PySide時沒有找到如何解決它?我可以在解釋器中導入FixTk,Tkinter,PyQt5,PySide。 我米下Win XP的編譯和我還試圖上取勝10兩者都是32位編譯python程序通過pyinstaller的窗口FixTk,Tkinter,PyQt5,PySide沒有找到

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' 

回答

0

我遇到(PIP)安裝枕頭後類似的問題。直到那時,我的構建都運行良好我通過在我的Python程序中包含'import FixTk',並在我的spec文件中包含'hiddenimports = ['FixTk']'來解決構建問題。

其他替代方法是在spec文件中添加'excludes = ['PIL']'分析。但是,如果將來對程序/應用程序進行的任何更改可能導致PIL(Pillow)被包含在內,您需要注意。