May 6 2015

Guide to install PyQt step by step in Ubuntu Gnome 15.04

I’m currently doing a course on Python GUI development and needed to install PyQt4 on my Ubuntu Gnome 15.04 desktop which gave me some stumbling blocks. Through lots of testing and research I managed to get it installed and decided to create a step by step guide on installing PyQt4 on Ubuntu 15.04.

You can view the steps below the video.

Below are the steps I took to get everything installed and working:

1. download sip from Riverbank Computing
2. download PyQT from Riverbank Computing
3. In the terminal run: sudo apt-get install python3.4-dev and then run: sudo apt-get install build-essential) too
From the terminal run: sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
4. Browse the folder in which you downloaded sip and extract the archive. Now browse to the extracted folder using the terninal
5. In the terminal run: sudo python3.4 configure.py
6. In the terminal run: sudo make
7. In the terminal run: sudo make install
8. Extract the PyQt archive you downloaded. Now browse to the extracted PyQt folder in the terminal
9. In the terminal run: sudo python3.4 configure.py
10. In the terminal run: sudo make
11. In the terminal run: sudo make install

PyQt4 is now installed and ready for some love