Debian (Wheezy) installs wxPython for GUI development
Debian (Wheezy) installs wxPython for GUI development
Because the official http://wiki.wxpython.org/InstallingOnUbuntuOrDebian does not have
So here we go to the warehouse for search.
Root @ debian:/# apt-cache search python-wxgtk
Python-wxgtk2.8-wxWidgets Cross-platform C ++ GUI toolkit (wxPython binding)
Python-wxgtk2.8-dbg-wxWidgets Cross-platform C ++ GUI toolkit (wxPython binding, debug version)
Root @ debian:/# apt-get install python
Display all 1846 possibilities? (Y or n)
Root @ debian:/# apt-get install python-wxgtk2.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
Libgadu3
Use 'apt-get autoremove 'to remove it.
The following extra packages will be installed:
Python-wxversion
Suggested packages:
Wx2.8-doc wx2.8-examples editra
The following NEW packages will be installed:
Python-wxversion python-wxgtk2.8
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 8,671 kB of archives.
After this operation, 33.8 MB of additional disk space will be used.
Now let's write a simple Hello world test.
#! /Usr/bin/env python
# Coding = UTF-8
Import wx
App = wx. App (False)
Frame = wx. Frame (None, wx. ID_ANY, "Hello World! ")
Frame. Show (True)
App. MainLoop ()
Run the py file. GUI, and enjoy ~
Install wxPython in Ubuntu
This article permanently updates the link address: