Skip to content

Instantly share code, notes, and snippets.

@kazufusa
Last active December 11, 2018 12:01
Show Gist options
  • Save kazufusa/7523380 to your computer and use it in GitHub Desktop.
Save kazufusa/7523380 to your computer and use it in GitHub Desktop.
PyQt5 install @ Ubuntu

Preliminary

You need python3 and python3-dev.

sudo apt-get install python3 python3-dev

Installing Qt5 SDK

$ sudo apt-get install qt5-default

Installing sip

$ wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.15.3/sip-4.15.3.tar.gz
$ tar zxfv sip-4.15.3.tar.gz
$ cd sip-4.15.3
$ python3 ./configure.py
$ make
$ sudo make install

Installing PyQt5.

$ wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.1.1/PyQt-gpl-5.1.1.tar.gz
$ tar zxf PyQt-gpl-5.1.1.tar.gz
$ cd PyQt-gpl-5.1.1
$ python3 configure.py --destdir /usr/lib/python3/dist-packages
$ make
$ sudo make install

Please refer to http://pyqt.sourceforge.net/Docs/PyQt5/installation.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment