Installing 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.

  1. 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 - 
  2. 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  
  3. Run the this command to update your local copy of the package meta-data.
        sudo apt-get update  
  4. 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 Version

Ubuntu 6.06

dapper

i386, amd64

2.4

Ubuntu 6.10

edgy

i386, amd64

2.4

Ubuntu 7.04

feisty

i386, amd64

2.5

Notes

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.