How to set up PyQt4 for python 3.2 in Ubuntu11.10

1) Open the synaptic package manager and install python 3.2
2) Open a terminal emulator and type

Code:
sudo apt-get install libqt4-dev

3) Download the program SIP from http://www.riverbankcomputing.co.uk/...-4.12.3.tar.gz
4) extract the folder using tar -xzf sip-4.12.3.tar.gz, cd into folder
5) in terminal emultator, type

Code:
python3.2 configure.py
make
sudo make install

now sip is installed
6) install pyqt4 with the command

Code:
sudo apt-get install python-qt4 qt4-dev-tools python-qt4-dev pyqt4-dev-tools

If that didn't work for you, download pyqt4 from http://www.riverbankcomputing.co.uk/...l-4.8.4.tar.gz
Untar and install pyqt4 the same way you installed SIP

you should be able to type in terminal

Code:
python3.2
>>import sys
>>from PyQt4 import QtGui

If you didn't get any errors, you installed everything correctly

Source: Neurobot (http://ubuntuforums.org/showpost.php?p=10914908)

posted @ 2011-11-20 14:10  MagicLetters  阅读(236)  评论(0编辑  收藏  举报