centos7安装wxPython-最简单的方法

通过源码安装wxPython非常麻烦,而且容易出错,也费时间。

通过 重要yum源方式非常的简单,过程如下:

[[email protected] 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]

[[email protected] 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

[[email protected] 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]

[[email protected] 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

[[email protected] 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)

[[email protected] 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%]

[[email protected] 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)

[[email protected] 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%]

[[email protected] Downloads]$ yum -y install wxPython

Loaded plugins: fastestmirror, langpacks, priorities

You need to be root to perform this command.

[[email protected] 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) <[email protected]>"

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!

[[email protected] Downloads]$

[[email protected] ~]$ 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

>>>

时间: 2024-10-12 18:47:39

centos7安装wxPython-最简单的方法的相关文章

centos7安装nginx的两种方法

第一种方式:通过yum安装 直接通过 yum install nginx 肯定是不行的,因为yum没有nginx,所以首先把 nginx 的源加入 yum 中 运行下面的命令: 1.将nginx放到yum repro库中 [[email protected] ~]# rpm -ivh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm 2.查看nginx信息 [[em

Windows下安装GnuRadio最简单的方法(没有之一)

作者在Windows XP SP3 32位下亲测通过,理论上Win7也没问题. 1. 如果系统中安装有Python,请先把Python卸载. 2. 下载安装Python(x,y) 2.7.5.0, 下载地址: http://www.softpedia.com/get/Programming/Other-Programming-Files/Python-x-y.shtml 安装时,安装位置选择默认,安装模块全选. 3. 下载安装PyGtk 2.24 All-In-One, 下载地址: http:/

Centos7安装完毕后重启提示Initial setup of CentOS Linux 7 (core)的解决方法

问题: CentOS7安装完毕,重新开机启动后显示: Initial setup of CentOS Linux 7 (core) 1) [x] Creat user 2) [!] License information (no user will be created) (license not accepted) Please make your choice from above ['q' to quit | 'c' to continue | 'r' to refresh]: 解决方法:

CentOS7 安装的Nagios-4.2.x出现HTTP Warring/403 Forbiden 最终解决方法

背景: 最近,接触到新公司的Nagios-4.2.x监控平台,但有个小小问题:CentOS7安装的apache-2.4.7,在nagios监控界面出现HTTP Warring/403 Forbiden警告. 此监控平台已经正常运行了两年多,就是HTTP警告未能消除,又因不是本人配置的,故在不影响业务正常运行的情况下,自己线下搭建了类似的操作系统+监控平台开始测试,模拟,也是出现同样的问题. 方法: 通过分析/var/log/httpd/error.log可知在/var/www/html下未能找到

Centos7.2安装后的简单调整

Centos7安装完成后做简单调整 1.安装必备的组件 yum install wget perl perl-devel net-tools kernel-devel (telnet可选性,我决定在其中一台安装就可以,我平时主要用于调试交换机) 2.安装开发工具  yum groupinstall 'Development tools' -y 3.安装epel和remi第三方软件源 yum install epel-release.noarch rpm -Uvh http://rpms.fami

yum 安装 MySQL5.7 最简单的方法!

yum 安装 MySQL5.7 最简单的方法! 正文 第一步 安装CentOS 略 CentOS 版本为6.5 第二步 安装 yum 仓库列表 使用yum 安装mysql,要使用mysql的yum仓库,先从官网下载适合你系统的仓库 https://dev.mysql.com/downloads/repo/yum/ 我下载的是 mysql57-community-release-el6-11.noarch.rpm 安装 yum localinstall mysql-community-releas

Jenkins的安装(最为简单的安装方法)

1.Jenkins的安装(最为简单的安装方法) (1)下载Jenkins(一个war文件) (2)cmd运行:java -jar jenkins.war [Jenkins需要IDK1.5以上的版本] Jenkins的默认端口号是8080,以下是Jenkins的安装成功运行的页面:

Linux CentOS 6.6 安装添加yum 源的简单处理方法

Linux CentOS  6.6 安装yum 源的简单处理方法 安装环境是:如下 [[email protected] ~]# cat /etc/redhat-release ========>查看的是版本 CentOS release 6.6 (Final) [[email protected] ~]# uname -r                ========>内核  2.6.32-504.el6.x86_64 [[email protected] ~]# 1.备份(必须要备份)

win7 64安装theano的简单方法

参考了很多网上的方法,总结出最简单的方法,作为备忘录. 第一步:安装MinGW 注意这一步一定要安装mingw64位,要不然在后面编译theano的函数时可能编译不过. mingw64我下载的传到我的csdn资源,里面含有gcc,g++等常用编译器. 链接如下: http://download.csdn.net/detail/leehomwanglj/8642055 然后将mingw添加到path路径,比如我将mingw放在c盘,命名为mingw64,则添加以下路径到PATH环境变量 C:\mi