PyQt4 在 Windows 上的安装

    技术2022-05-19  21

    PyQt4 Windows 上的安装

     

      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

    注意:使用第二种方式没有安装成功 , 不知道是版本还是什么不对 , 如果有谁成功的话,请告诉我 , 谢谢了。


    最新回复(0)