您的位置:首页 > 编程语言 > Python开发

wxPython4.0 在ubuntu 16.04的安装在python3.5上

2018-02-03 11:28 387 查看

wxPython Downloads and  Install

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()

<wx.core.App object at 0x7f66668888888>

好了,尽情的享用吧。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: