example, to get the GTK3 wxPython buildsfor Ubuntu 16.04 (and 16.10, LinuxMint 18, and probably others) you can usea pip command like this:
pip install -U \
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 \
wxPython 上面这个安装指令是 官网提供的:
点击打开链接 打开吧
亲测 安装有效。(python3 的话,是pip3)(这是安装:sudo apt-get install python3-pip)
不过,Ubuntu 默认是2.7的 版本 python ..
你需要手动修改了。
怎么修改,请查看我的上一篇博文。仅供参考。
在安装的过程中,可能会下载其他的包。 比如 six.
安装完成后,在终端输入 python(我这里已经是3.5 的版本了)
>>> import wx
>>> wx.App()
好了,尽情的享用吧。