国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

ubuntu下配置PythonwxWidgets(復制自官方網站)

2019-11-14 17:46:21
字體:
來源:轉載
供稿:網友

全系統英文官網操作地址:http://wxpython.org/download.php

Ubuntu 英文操作地址: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 cases many releases behind. Since many users PRefer to use only packages installed from repositories (for easier package management) but still would 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.list file (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 architectures.)

    這一步要注意:ubuntu下對于sources.list文件中的內容進行了保護操作,不允許直接操作文本文件,需要在“軟件更新”界面里面進行添加操作。    

    # 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. For example, if your distro is Ubuntu Gutsy, then you would 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 it with apt-get:

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

    The packages libwxgtk2.8-dev and libgtk2.0-dev may 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 previously. 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 Architectures

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 architectures:

Release

DIST name

Architectures

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

hardy

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

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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 新巴尔虎右旗| 如皋市| 平塘县| 宁强县| 哈巴河县| 达日县| 海丰县| 仪征市| 搜索| 寿宁县| 大竹县| 葵青区| 民乐县| 霍邱县| 法库县| 澄城县| 纳雍县| 天镇县| 瑞丽市| 上饶县| 邯郸县| 中西区| 英德市| 六盘水市| 赤城县| 江陵县| 昆明市| 手机| 康保县| 平山县| 伊春市| 桦南县| 喀什市| 盐边县| 长沙县| 沿河| 竹溪县| 宾川县| 黔江区| 自贡市| 揭阳市|