Sample Header Ad - 728x90

Installing pyqt5 on linux failed due to SIP dependency

1 vote
2 answers
14416 views
I am trying to install pyqt5 on linux; $ cat /proc/version Linux version 4.11.4-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Jun 7 12:18:44 EDT 2017 I got by the python3 and pip3 installation (with lots of difficulties), and when I finally got to do: sudo pip3 install pyqt5, I get: Collecting pyqt5 Using cached PyQt5-5.8-5.8.0-cp34.cp35.cp36.cp37-abi3-manylinux1_x86_64.whl Collecting sip>=4.19.1 (from pyqt5) Could not find a version that satisfies the requirement sip>=4.19.1 (from pyqt5) (from versions: ) No matching distribution found for sip>=4.19.1 (from pyqt5) I understand that sip 4.19.1 is a dependency (why can't pip3 install it automatically?), so I tried installing it with sudo yum install sip, hoping to get the latest sip, but instead I got: Package sip-4.14.6-4.el7.x86_64 already installed and latest version but 4.14.6 is not the latest, and doing sudo yum update sip did not help: No packages marked for update I found the latest installation of sip online: http://pyqt.sourceforge.net/Docs/sip4/installation.html But I'd rather installing it through command line by simply issuing sudo yum install $WHATEVER (because later I want to have the entire pyqt5 installation packed into a simple script). What should I update in order for yum to find and install the latest sip (4.19.7)? **EDIT** Per @Norrius request in the comments, this is what I get: $ sudo pip3 install SIP Collecting SIP Could not find a version that satisfies the requirement SIP (from versions: ) No matching distribution found for SIP $ python3 --version Python 3.4.5
Asked by so.very.tired (227 rep)
Jan 27, 2018, 10:08 AM
Last activity: Jun 17, 2021, 11:56 AM