ubuntu 下配置Python wxWidgets (复制自官方网站)
全系统英文官网操作地址: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.
- 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)
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 mainFor 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- 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 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.
ubuntu 下配置Python wxWidgets (复制自官方网站)的更多相关文章
- Ubuntu下配置python完成爬虫任务(笔记一)
Ubuntu下配置python完成爬虫任务(笔记一) 目标: 作为一个.NET汪,是时候去学习一下Linux下的操作了.为此选择了python来边学习Linux,边学python,熟能生巧嘛. 前期目 ...
- 39 Ubuntu下配置python的vscode开发环境
0 引言 最近想在ubuntu下搞深度学习,首先配置了python的vscode开发环境.在配置python时,选择了Anaconda3.x,保证了其相对于系统python2.x的独立性.另外,vsc ...
- 转[开发环境配置]在Ubuntu下配置舒服的Python开发环境
在Ubuntu下配置舒服的Python开发环境 Ubuntu 提供了一个良好的 Python 开发环境,但如果想使我们的开发效率最大化,还需要进行很多定制化的安装和配置.下面的是我们团队开发人员推荐的 ...
- Windows10内嵌Ubuntu子系统配置python开发环境
Windows10内嵌Ubuntu子系统配置python开发环境 安装pycharm. 到intellij idea网站下载Linux环境下载免费的pycharm,通过ubuntu子系统内部的/mnt ...
- Ubuntu下配置C/C++开发环境
在 Ubuntu 下配置 C/C++ 开发环境 转自:白巴的临时空间 Submitted by 白巴 on 2009-04-27 19:52:12. 学习笔记 虽然 Ubuntu 的版本已经是9.04 ...
- [转]Ubuntu下配置NFS服务
[转]Ubuntu下配置NFS服务 http://blog.163.com/liu8821031%40126/blog/static/111782570200921021253516/ Table ...
- Ubuntu下配置tftp服务
Ubuntu下配置tftp服务 1.安装TFTP软件 sudo apt-get install tftp-hpa tftpd-hpa tftp-hpa是客户端,tftpd-hpa是服务器端 2.建立t ...
- ubuntu下配置Apache
ubuntu下配置Apache Apache的默认文档根目录是在Ubuntu上的/var/www目录 配置文件是/ etc/apache2/apache2.conf配置存储在的子目录在/etc/apa ...
- ubuntu 下配置Web服务器
ubuntu 下配置Web服务器 1.切换管理员身份 终端/文本界面输入命令: su 根据提示输入密码 注: 如果不能使用su 点击查看如何启用su2.安装MySQL5 apt-get install ...
随机推荐
- FE—— Code First 初体验 01(转)
EF Code First 初体验 Code First 顾名思义就是先代码,再由代码生成数据库的开发方式. 废话不多说,直接来一发看看:在VS2010里新建一个空白解决方案,再依次添加两个类库项 ...
- 给jdk写注释系列之jdk1.6容器(10)-Stack&Vector源码解析
前面我们已经接触过几种数据结构了,有数组.链表.Hash表.红黑树(二叉查询树),今天再来看另外一种数据结构:栈. 什么是栈呢,我就不找它具体的定义了,直接举个例子,栈就相当于一个很窄的木桶 ...
- [改善Java代码]注意方法中传递的参数要求(replaceAll和replace的区别)
有这样一个简单的需求:写一个方法,实现从原始字符串中删除与之匹配的所有子字符串,比如"蓝蓝的天,白云飘"中,删除"白云飘",输出"蓝蓝的天," ...
- 浅谈Oracle 性能优化
基于大型Oracle数据库应用开发已有6个年头了,经历了从最初零数据演变到目前上亿级的数据存储.在这个经历中,遇到各种各样的性能问题及各种性能优化. 在这里主要给大家分享一下数据库性能优化的一些方法和 ...
- Jquery选择器 讲解
在Dom 编程中我们只能使用有限的函数根据id 或者TagName 获取Dom 对象. 然而在jQuery 中则完全不同,jQuery 提供了异常强大的选择器用来帮助我们获取页面上的对象, 并且将对象 ...
- SignalR 2.0入门
下载已完成的项目 本教程展示如何使用那么 SignalR 创建一个实时聊天应用程序.你会那么 SignalR 添加一个空的 ASP.NET web 应用程序,创建一个 HTML 页面发送并显示消息. ...
- Android项目源码界面超级华丽的仿QQ最新版本
这是一个我们比较熟悉的一款应用,高仿专仿最新QQ应用源码,也是一个高仿QQ最新版本的项目,界面超级华丽,使用了大量的自定义控件,项目里实现了部分功能,例如WIFI-FTP(把手机变成FTP服务端,可以 ...
- PowerDesigner16.5 生成SQL脚本执行出错:collate chinese_prc_ci_as
PowerDesigner16.5 生成SQL脚本执行出错, collate chinese_prc_ci_as 点DataBase-edit current dbms —— 左边Script - O ...
- using System.Collections.Generic;
public class CommonClass { public static void ShowInt(int iValue) { //typeof(CommonClass) typeof关键字 ...
- 使用C#通过调用minitab的COM库自动化生成报表
本文介绍通过C#调用minitab com组建自动化生成报表的方法. 首先需要在minitab中通过手动配置的方式生成报表来得到该报表的命令行,过程如下 选择菜单“编辑器”->“启用命令”启用命 ...