【发布时间】:2016-11-03 20:17:06
【问题描述】:
我使用 Python 2.7 Windows 8。
当我遇到这个问题时,它仍然不知道它有多少陷阱。在这里,我想介绍一下我遇到和测试过的所有选项,以及我最终提供帮助的选项。
1) 我检查了模块Tkinter or tkinter使用的拼写。
2)我阅读了如何使用pyinstaller,在项目模块中使用时:tkinter和matplotlib然后能够放弃matplotlib,但这也不影响我的解决方案问题。
3) 使用参数pPyInstaller -y -F --distpath="." -p "C:\Python27\Lib\lib-tk" test.py从命令行添加模块路径
4) 只连接模块https://groups.google.com/forum/#!topic/pyinstaller/vtbKKt6v0is的必要部分
5) 使用 pyinstaller 选项 --hiddenimport=Tkinter 并在文件 \PyInstaller\hooks\hook-PIL.py 和 hook-PIL.SpiderImagePlugin.py https://github.com/pyinstaller/pyinstaller/issues/1584 中注释行 excludedimports
【问题讨论】:
标签: python matplotlib tkinter pyinstaller