PyQt4 在 Windows 上的安装
2011-04-07 12:33:04| 分类: | 标签: |字号大中小
在 windows 上安装有两种方式:
一. windows 安装包方式
此种方式最简单。
1. 下载 python-2.6.4.msi windows 安装包 , 并安装
2. 下载 sip-4.12.1.zip
a. 解压
b. 打开 visual studio 2008 command prompt, 定位到解压目录
c. 执行 python configure.py
d. 执行 nmake
e. 执行 nmake install
3. 下载 PyQt-Py2.6-x86-gpl-4.8.3-1.exe 安装包,并安装
二. Windows 编译安装
1. 下载安装 qt-sdk-win-opensource-2010.05.exe
2. 下载 python2.6.4 windows 安装
3. 下载 sip-4.12.1.zip
a. 解压
b. 运行 cmd
c. 定位安装目录中执行 qtenv.bat( 我的安装目录 : D:\Qt\2010.05\bin)
d. 定位解压目录 , 执行 python configure.py -p win32-g++
e. 执行 mingw32-make
f. 执行 mingw32-make install
4. 下载 PyQt-win-gpl-4.8.3.zip, 并解压
a. 在同一个 cmd 环境下
b. 执行 python configure.py –w
c. 执行 mingw32-make
d. 执行 mingw32-make install