centos6.5 安装PyQt4

软件:PyQt4

操作系统:Centos6.5

预置条件:Centos上已经安装epel repo (epel库)

安装过程

[root@gdc1000 cocodraw]# yum install PyQt4

Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.btte.net
 * extras: ftp.sjtu.edu.cn
 * rpmforge: mirror.fairway.ne.jp
 * updates: mirrors.btte.net
base                                                                                                                                  | 3.7 kB     00:00     
extras                                                                                                                                | 3.4 kB     00:00     
rpmforge                                                                                                                              | 1.9 kB     00:00     
Not using downloaded repomd.xml because it is older than what we have:
  Current   : Fri Jul 11 09:46:59 2014
  Downloaded: Wed Jul 25 09:43:04 2012
updates                                                                                                                               | 3.4 kB     00:00     
zabbix                                                                                                                                |  951 B     00:00     
zabbix-non-supported                                                                                                                  |  951 B     00:00     
Resolving Dependencies
--> Running transaction check
---> Package PyQt4.x86_64 0:4.6.2-9.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                             Arch                                 Version                                   Repository                          Size
=============================================================================================================================================================
Installing:
 PyQt4                               x86_64                               4.6.2-9.el6                               base                               2.3 M

Transaction Summary
=============================================================================================================================================================
Install       1 Package(s)

Total download size: 2.3 M
Installed size: 13 M
Is this ok [y/N]: y
Downloading Packages:
PyQt4-4.6.2-9.el6.x86_64.rpm                                                                                                          | 2.3 MB     00:12     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : PyQt4-4.6.2-9.el6.x86_64                                                                                                                  1/1
  Verifying  : PyQt4-4.6.2-9.el6.x86_64                                                                                                                  1/1

Installed:
  PyQt4.x86_64 0:4.6.2-9.el6     
                                                                                                                            

Complete!


验证:

python test.py

其中test.py

import PyQt4

不会出现错误。



你可能感兴趣的:(centos6.5 安装PyQt4)