Configure Python wxWidgets In ubuntu (copied from the official website)

Source: Internet
Author: User

Full system official website operation address: http://wxpython.org/download.php

Ubuntu English address: http://wiki.wxpython.org/InstallingOnUbuntuOrDebian

Installing wxWidgets and 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 casesBytesReleases behind. since extends users prefer to use only packages installed from repositories (for easier package management) but still wowould like to have newest versions possible of their installed software, we have our own APT repository 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  (or  sudo apt-key add-http://apt.wxwidgets.org/key.asc)
  2. Add the following lines to your/Etc/apt/sources. listFile (or use the "software sources" program under the "system" menu ).Replace the "DIST" text with whatever is appropriate for your system.(See the table below for a list of supported distributions and ubuntures .)

    In this step, you must note that the content in the sources. list file is protected in ubuntu. You are not allowed to operate the text file directly. You must add the content in the "Software Update" interface.

    # WxWidgets/wxPython repository at apt.wxwidgets.org//the first line is changed to comment deb http://apt.wxwidgets.org/DIST-wx main deb-src http://apt.wxwidgets.org/DIST-wx main
  3. For example, If your distro isUbuntu Gutsy, Then you wocould use the following configuration statements:

        # wxWidgets/wxPython repository at apt.wxwidgets.org    deb http://apt.wxwidgets.org/ gutsy-wx main    deb-src http://apt.wxwidgets.org/ gutsy-wx main  
  4. Run the this command to update your local copy of the package meta-data.
        sudo apt-get update  
  5. You can now use your favorite package selection tool to install or upgrade the wxWidgets and wxPython packages. Here's how to do itApt-get:

        sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n

    The packagesLibwxgtk2.8-devAndLibgtk2.0-devMay need to be installed if a 3rd party application requires wxWidgets when building from source.

        sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev

    These packages (and their dependencies) will replace earlier versions of wxPython and wxGTK in the same ReleaseSeries that may have been installed previusly. there are a few other wx packages as well, but those listed above and their dependencies are the core that are needed for use with wxPython.

 

Supported Distributions and ubuntures

At a terminal, enter "lsb_release-a" to print what version of Ubuntu you have.

There are currently packages in the repository for these Ubuntu releases and ubuntures:

Release

DIST name

Ubuntures

Python Versions

Latest wx

Ubuntu 6.06

Dapper

I386, amd64

2.4

2.8.8.0

Ubuntu 6.10

Edgy

I386, amd64

2.4, 2.5

2.8.6.1

Ubuntu 7.04

Feisty

I386, amd64

2.4, 2.5

2.8.9.1

Ubuntu 7.10

Gutsy

I386, amd64

2.4, 2.5

2.8.9.2

Ubuntu 8.04

Hard

I386, amd64

2.4, 2.5

2.8.10.1

Ubuntu 8.10

Intrepid

I386, amd64

2.4, 2.5

2.8.10.1

Ubuntu 9.04

Jaunty

I386, amd64

2.5, 2.6

2.8.11.0

Ubuntu 9.10

Karmic

I386, amd64

2.5, 2.6

2.8.11.0

Ubuntu 10.4

Lucid

I386, amd64

2.6

2.8.12.0

Ubuntu 10.10

Maverick

I386, amd64

2.6

2.8.12.0

Ubuntu 11.4

Natty

I386, amd64

2.6, 2.7

2.8.12.0

Debian 4.0

Etch

I386, amd64

2.4

2.8.12.0

Debian 5.0

Lenny

I386, amd64

2.4, 2.5

2.8.12.0

Debian 6.0

Squeeze

I386, amd64

2.5, 2.6

2.8.12.0

 

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 wxPython package is only built this way if pycentral is available and if it says that more than one version of Python shocould 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-.

  • Starting with the 2.8.7.1 release this repository also contains packages for the ansi build of wxWidgets, all with an "-ansi" in their name. See UnicodeBuild for what this means.

  • If you get errors during the package installation stating that the package relies on future versions of libc, libstdc ++ etc, then you have likely chosen the wrong distribution, probably a later one than you actually have.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.