通过源码安装wxPython非常麻烦,而且容易出错,也费时间。
通过 重要yum源方式非常的简单,过程如下:
[maokx@localhost Downloads]$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
--2015-03-04 09:50:36-- http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 209.132.181.26, 209.132.181.25, 209.132.181.23, ...
Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14524 (14K) [application/x-rpm]
Saving to: ‘epel-release-7-5.noarch.rpm’
100%[==============================================================================================================================>] 14,524 74.7KB/s in 0.2s
2015-03-04 09:50:42 (74.7 KB/s) - ‘epel-release-7-5.noarch.rpm’ saved [14524/14524]
[maokx@localhost Downloads]$ ls
epel-release-7-5.noarch.rpm ulipad wxGTK-2.8.12.tar.gz wxPython-src-3.0.2.0.tar.bz2
limodou-ulipad-master.zip wxGTK-2.8.12 wxPython-src-3.0.2.0 wxWidgets-3.0.2.tar.bz2
[maokx@localhost Downloads]$ wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
--2015-03-04 09:51:53-- http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Resolving pkgs.repoforge.org (pkgs.repoforge.org)... 78.46.17.228
Connecting to pkgs.repoforge.org (pkgs.repoforge.org)|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://rpmforge.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm [following]
--2015-03-04 09:51:59-- http://rpmforge.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Resolving rpmforge.sw.be (rpmforge.sw.be)... 78.46.17.228
Connecting to rpmforge.sw.be (rpmforge.sw.be)|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://tree.repoforge.org/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm [following]
--2015-03-04 09:52:04-- http://tree.repoforge.org/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Resolving tree.repoforge.org (tree.repoforge.org)... 78.46.17.228
Connecting to tree.repoforge.org (tree.repoforge.org)|78.46.17.228|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm [following]
--2015-03-04 09:52:10-- http://apt.sw.be/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
Resolving apt.sw.be (apt.sw.be)... 193.1.193.67
Connecting to apt.sw.be (apt.sw.be)|193.1.193.67|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12520 (12K) [application/x-redhat-package-manager]
Saving to: ‘rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm’
100%[==============================================================================================================================>] 12,520 20.1KB/s in 0.6s
2015-03-04 09:52:17 (20.1 KB/s) - ‘rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm’ saved [12520/12520]
[maokx@localhost Downloads]$ ls
epel-release-7-5.noarch.rpm rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm wxGTK-2.8.12 wxPython-src-3.0.2.0 wxWidgets-3.0.2.tar.bz2
limodou-ulipad-master.zip ulipad wxGTK-2.8.12.tar.gz wxPython-src-3.0.2.0.tar.bz2
[maokx@localhost Downloads]$ rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
warning: rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
error: can‘t create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[maokx@localhost Downloads]$ sudo rpm -ivh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
warning: rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 6b8d79e6: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:rpmforge-release-0.5.3-1.el7.rf ################################# [100%]
[maokx@localhost Downloads]$ rpm -ivh epel-release-7-5.noarch.rpm
warning: epel-release-7-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
error: can‘t create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
[maokx@localhost Downloads]$ sudo rpm -ivh epel-release-7-5.noarch.rpm
warning: epel-release-7-5.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Preparing... ################################# [100%]
Updating / installing...
1:epel-release-7-5 ################################# [100%]
[maokx@localhost Downloads]$ yum -y install wxPython
Loaded plugins: fastestmirror, langpacks, priorities
You need to be root to perform this command.
[maokx@localhost Downloads]$ sudo yum -y install wxPython
Loaded plugins: fastestmirror, langpacks, priorities
base | 3.6 kB 00:00:00
epel/x86_64/metalink | 5.4 kB 00:00:00
http://ftp6.sjtu.edu.cn/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#7 - "Failed to connect to 2001:da8:8000:6023::230: Network is unreachable"
Trying other mirror.
epel | 4.4 kB 00:00:00
extras | 3.4 kB 00:00:00
rpmforge | 1.9 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/2): epel/x86_64/group_gz | 250 kB 00:00:06
(2/2): epel/x86_64/primary_db | 4.0 MB 00:00:53
(1/3): epel/x86_64/updateinfo | 292 kB 00:00:06
(2/3): rpmforge/primary_db | 125 kB 00:00:09
(3/3): epel/x86_64/pkgtags | 1.4 MB 00:00:23
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* epel: mirrors.ustc.edu.cn
* extras: mirrors.btte.net
* rpmforge: ftp.riken.jp
* updates: mirrors.btte.net
Resolving Dependencies
--> Running transaction check
---> Package wxPython.x86_64 0:2.8.12.0-4.el7 will be installed
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_stc-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_richtext-2.8.so.0(WXU_2.8.11)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_richtext-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_media-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_html-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_gl-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_gizmos-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.5)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.2)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.10)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8.1)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8.9)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8.5)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8.5)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8.11)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu_xml-2.8.so.0(WXU_2.8.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu_xml-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu_net-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8.5)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu-2.8.so.0(WXU_2.8)(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_xrc-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_stc-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_richtext-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_qa-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_media-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_html-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_gl-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_gizmos-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_core-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_aui-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_gtk2u_adv-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu_xml-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu_net-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Processing Dependency: libwx_baseu-2.8.so.0()(64bit) for package: wxPython-2.8.12.0-4.el7.x86_64
--> Running transaction check
---> Package wxBase.x86_64 0:2.8.12-8.el7 will be installed
---> Package wxGTK.x86_64 0:2.8.12-8.el7 will be installed
---> Package wxGTK-gl.x86_64 0:2.8.12-8.el7 will be installed
--> Processing Dependency: libGLU.so.1()(64bit) for package: wxGTK-gl-2.8.12-8.el7.x86_64
---> Package wxGTK-media.x86_64 0:2.8.12-8.el7 will be installed
--> Running transaction check
---> Package mesa-libGLU.x86_64 0:9.0.0-4.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
========================================================================================================================================================================
Package Arch Version Repository Size
========================================================================================================================================================================
Installing:
wxPython x86_64 2.8.12.0-4.el7 epel 10 M
Installing for dependencies:
mesa-libGLU x86_64 9.0.0-4.el7 base 196 k
wxBase x86_64 2.8.12-8.el7 epel 576 k
wxGTK x86_64 2.8.12-8.el7 epel 2.9 M
wxGTK-gl x86_64 2.8.12-8.el7 epel 33 k
wxGTK-media x86_64 2.8.12-8.el7 epel 43 k
Transaction Summary
========================================================================================================================================================================
Install 1 Package (+5 Dependent packages)
Total download size: 14 M
Installed size: 60 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/epel/packages/wxGTK-gl-2.8.12-8.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY 0.0 B/s | 0 B --:--:-- ETA
Public key for wxGTK-gl-2.8.12-8.el7.x86_64.rpm is not installed
(1/6): wxGTK-gl-2.8.12-8.el7.x86_64.rpm | 33 kB 00:00:05
(2/6): mesa-libGLU-9.0.0-4.el7.x86_64.rpm | 196 kB 00:00:06
(3/6): wxGTK-media-2.8.12-8.el7.x86_64.rpm | 43 kB 00:00:06
(4/6): wxBase-2.8.12-8.el7.x86_64.rpm | 576 kB 00:00:07
(5/6): wxGTK-2.8.12-8.el7.x86_64.rpm | 2.9 MB 00:00:31
(6/6): wxPython-2.8.12.0-4.el7.x86_64.rpm | 10 MB 00:00:55
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 234 kB/s | 14 MB 00:01:01
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
Userid : "Fedora EPEL (7) <epel@fedoraproject.org>"
Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
Package : epel-release-7-5.noarch (installed)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : wxBase-2.8.12-8.el7.x86_64 1/6
Installing : wxGTK-2.8.12-8.el7.x86_64 2/6
Installing : wxGTK-media-2.8.12-8.el7.x86_64 3/6
Installing : mesa-libGLU-9.0.0-4.el7.x86_64 4/6
Installing : wxGTK-gl-2.8.12-8.el7.x86_64 5/6
Installing : wxPython-2.8.12.0-4.el7.x86_64 6/6
Verifying : wxGTK-gl-2.8.12-8.el7.x86_64 1/6
Verifying : wxPython-2.8.12.0-4.el7.x86_64 2/6
Verifying : wxBase-2.8.12-8.el7.x86_64 3/6
Verifying : wxGTK-media-2.8.12-8.el7.x86_64 4/6
Verifying : wxGTK-2.8.12-8.el7.x86_64 5/6
Verifying : mesa-libGLU-9.0.0-4.el7.x86_64 6/6
Installed:
wxPython.x86_64 0:2.8.12.0-4.el7
Dependency Installed:
mesa-libGLU.x86_64 0:9.0.0-4.el7 wxBase.x86_64 0:2.8.12-8.el7 wxGTK.x86_64 0:2.8.12-8.el7 wxGTK-gl.x86_64 0:2.8.12-8.el7 wxGTK-media.x86_64 0:2.8.12-8.el7
Complete!
[maokx@localhost Downloads]$
[maokx@localhost ~]$ python
Python 2.7.5 (default, Jun 17 2014, 18:11:42)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>>
原文地址:http://blog.csdn.net/maokexu123/article/details/44056313