After grueling hours trying to get iPython PyLab running with my Python3.4 installation, I finally managed to get one of its dependencies (PyQt5) working correctly. I’ll leave my solution here for posterity…
OS: Ubuntu 15.04
Python version: 3.4
Step 1
Install (using Ubuntu’s Software Center – USC):
-
libqt5svg5
-
libqt5svg5-dev
Step 2
Download and install SIP source.
For both SIP and PyQt5 installations, I needed to direct it to my ‘usr/local/lib/python3.4/dist-packages’ folder. Apparently default goes to ‘usr/lib/’.
After unpacking the .tar file, run these commands inside the extracted folder:
http://pastebin.com/embed_iframe.php?i=y7KAb42w
Step 3
Download and install PyQt5 source.
After unpacking the .tar file, run these commands inside the extracted folder (they are the same as before):
http://pastebin.com/embed_iframe.php?i=y7KAb42w
Testing
In my case, I was having issues with the QtSvg module which was not being installed with PyQt5.
To test everything I ran python 3.4 and:
from PyQt5 import QtSvg
If this runs, you are golden.
Helpful sources I used: