Installing wxWidgets and/or wxPython On Ubuntu Or Debian
There are wxWidgets and wxPython packages in the standard software repositories for Debian and Ubuntu, but they are usually at least a few releases behind the current release, and in some cases many releases behind. So instead of making all the Ubuntu and Debian users who like to only use the software repositories have to wait until the distribution folks update the main repositories, we have our own that is usually updated within a few days of each release. To use it to be able to keep your wx on the cutting edge release just follow these instructions.
- The packages and the repository meta-data are digitally signed, so you'll need to import the key into your apt's list of trusted keys in order to not get warnings about it.
curl http://apt.wxwidgets.org/key.asc | sudo apt-key add -
Add the following lines to your /etc/apt/sources.list file. Replace the "DIST" text with whatever is appropriate for your system. (See further down the page for a table of supported distributions and architectures.)
# wxWidgets/wxPython repository at apt.wxwidgets.org deb http://apt.wxwidgets.org/ DIST-wx main deb-src http://apt.wxwidgets.org/ DIST-wx main
- Run the this command to update your local copy of the package meta-data.
sudo apt-get update
You can now use your favorite package selection tool to install or upgrade the wxWidgets and wxPython packages. Here's how to do it with apt-get:
sudo apt-get install python-wxgtk2.8 python-wxtools python-wxaddons wx2.8-i18n
These packages (and their dependencies) will replace earlier versions of wxPython and wxGTK in the same ReleaseSeries that may have been installed previously.
Supported Distributions and Architectures
There are currently packages in the repository for these Ubuntu releases and architectures:
Release |
DIST name |
Architectures |
Python Versions |
Ubuntu 6.06 |
dapper |
i386, amd64 |
2.4 |
Ubuntu 6.10 |
edgy |
i386, amd64 |
2.4, 2.5 |
Ubuntu 7.04 |
feisty |
i386, amd64 |
2.4, 2.5 |
Debian 4.0 |
etch |
i386, amd64 |
2.4 |
Notes
- When multiple Python versions are listed in the table above then that means that the wxPython package supports all of the listed versions of Python at the same time. This is accomplished using the pycentral debhelper, so the the wxPython package is only built this way if pycentral is available and if it says that more than one version of Python should be supported.
If you don't see the release or architecture that you need here you can get the source package and build your own set of binary packages. See BuildingDebianPackages for a how-to.