首页 > 解决方案 > 为什么 pyInstaller 试图导入 tkinter?

问题描述

我的 pyInstaller 构建正在尝试安装 tkinter,这会导致各种问题。我可以解决它们,但真正的问题是它为什么要尝试导入 tkinter?我正在使用wx!

这是我的依赖项:

qrcode==5.3
PyExecJS==1.1.0
pysftp==0.2.8
six==1.10.0
requests==2.10.0
paramiko==1.15.2
nose==1.3.7
verlib==0.1
jsbeautifier==1.5.4
ecdsa==0.13
wxPython==3.0.3.0b20160914
invoke==1.0.0
polib==1.0.6
macholib==1.11
pycrypto==2.6.1
pyOpenSSL==19.0.0
PyInstaller==3.4
mandrill==1.0.57
mock==2.0.0
ndg_httpsclient==0.5.1
pymongo==3.7.2
PyYAML==5.1

那么,为什么要尝试包含 tkinter?

标签: tkinterpyinstaller

解决方案


tkinter 被枕头使用。qrcode 需要枕头(反过来)。


推荐阅读