[PyQt] Installing PyQt5 on CentOS using Wheels

Phil Thompson phil at riverbankcomputing.com
Sat Jul 22 11:51:41 BST 2017

On 19 Jul 2017, at 12:05 am, James Stearns - NOAA Affiliate <james.stearns at noaa.gov> wrote:
> I have a PyQt5 application running on Windows that I'd like to get running on CentOS 6 as well. I'd prefer to install from wheels rather than source, as described in Installing PyQt5 . When I do so, and attempt to run, I get this error:
> ImportError: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/jsnoaa/pyqt5-framdata/virtualenv/centos_pyqt5_framdata/lib/python3.6/site-packages/PyQt5/QtCore.so)
> My read of the error: QtCore.so is expecting a /lib64/libc-2.14.so or later, but /lib64/libc.so.6 on CentOS 6.9 is linked to /lib64/libc-2.12.so.
> Environment:
> 	• CentOS release 6.9 (Final) (2.6.32-696.6.3.el6.x86_64)
> 	• Python 3.6.1 (wget http://python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz)
> 	• PyQt5 5.9 (pip3.6 PyQt5==5.9)
> I read with interest How to Install Qt 5 and Qwt on CentOS 6. Is this note saying that one must install PyQt5 onto CentOS 6 by compilation, not from wheels?

The wheels are built with the same versions as used to build the Qt installers. For current versions that means RHEL 7.2. Older versions are still supported (I think) but you must build them yourself.


More information about the PyQt mailing list