[PyQt] Centos 7 attempt to build PyQt5 5.12 - PyQt5.sip not found

Barry Scott barry at barrys-emacs.org
Mon Mar 11 19:30:57 GMT 2019

I am trying to build PyQt5 with QScintilla from source on Centos 7.6.

These are the steps I use:

tar xf sip-4.19.14.tar.gz
cd sip*
python3.6 configure.py
sudo python3.6 make install
cd ..

tar xf PyQt5_gpl-5.12.tar.gz
cd PyQt5*
python3.6 configure.py --qmake=/usr/bin/qmake-qt5
sudo make install
cd ..

$ python3.6
Python 3.6.6 (default, Aug 13 2018, 18:24:23) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtCore
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'PyQt5.sip'

I did find that the Fedora src.rpm has a patch for configure.py but that made no difference.

If that had worked I was going to do:

tar xf QScintilla_gpl-2.11.1.tar.gz  
cd QScintilla*
cd Qt4Qt5
/usr/bin/qmake-qt5 qscintilla.pro
sudo make install
cd ../Python
python3.6 configure.py --pyqt=PyQt5 --qmake=/usr/bin/qmake-qt5
make install


More information about the PyQt mailing list