为什么我不能 运行 Tkinter 简单测试?
Why am I not able to run Tkinter simple test?
我正在 Raspberry pi 3 上通过 ssh 测试 tkinter GUI
Python代码:
python3
>> import tkinter
>> tkinter._test()
我收到 this 错误。
这是因为我使用的是 SSH 吗?
是的,tkinter 需要从图形环境启动。如果你想在远程进行,你应该使用 vnc。
我正在 Raspberry pi 3 上通过 ssh 测试 tkinter GUI
Python代码:
python3
>> import tkinter
>> tkinter._test()
我收到 this 错误。
这是因为我使用的是 SSH 吗?
是的,tkinter 需要从图形环境启动。如果你想在远程进行,你应该使用 vnc。