Bitte helfen Sie bei der Installation von Qt Centos 7

13218
user3103193

Ich habe 2 Python-Versionen, Python3.6 ist auf Virtualenv für Entwicklungszwecke installiert. Ich versuche, PyQt- und Qt-Pakete nur für Python3.6 zu installieren.

Ich habe PyQt5 mit sudo pip3.6 installiert pyqt5 installiert. Die Anweisung, der ich folgte, besagt, dass Qt in PyQt5 enthalten ist. Auch im Paket pyqt5 in /usr/lib64/python3.6/site-packages/PyQt5, Aber wenn ich qmake --version einsetze, um die qt-Version zu überprüfen, gibt es folgende Fehlermeldung:

qmake --version  bash: qmake: command not found...  Similar command is: 'make' 

Beim Benutzen:

make --version 

Es gibt das Folgende:

GNU Make 3.82  Built for x86_64-redhat-linux-gnu  Copyright (C) 2010 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later  This is free software: you are free to change and redistribute it.  There is NO WARRANTY, to the extent permitted by law. 

mit

rpm -ql qt 

gibt folgendes:

package qt is not installed 

Wenn ich sudo pip3.6 installiere, um es neu zu installieren, erscheint die folgende Fehlermeldung "` ``

Could not find a version that satisfies the requirement qt5 (from versions: ) No matching distribution found for qt5" 

Wenn ich yum benutze, installiere qt5:

Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00 epel/x86_64/metalink | 24 kB 00:00 epel | 4.3 kB 00:00 extras | 3.4 kB 00:00 ius | 2.3 kB 00:00 updates | 3.4 kB 00:00 (1/3): ius/x86_64/primary_db | 206 kB 00:00 (2/3): epel/x86_64/updateinfo | 806 kB 00:01 (3/3): epel/x86_64/primary_db | 4.8 MB 00:08 Loading mirror speeds from cached hostfile * base:  

mirror.sov.uk.goscomb.net * epel: ftp.heanet.ie * Extras: mirror.ox.ac.uk * ius: lon.mirror.rackspace.com * Updates: mirror.sov.uk.goscomb.net Nein Paket qt5 verfügbar. Fehler: Nichts zu tun

Kann jemand bitte helfen? Vielen Dank

3

1 Antwort auf die Frage

8
Knud Larsen

Qt5-Pakete # yum search qt5suchen : ... und nach qmake suchen:yum provides */bin/qmake*

Installieren Sie das CentOS 7-System qt5:

# yum install qt5-qtbase-devel 

... Stellt / usr / bin / qmake-qt5 bereit

Ich möchte es auf virtualenv installieren - also aktiviere ich die virtualenv und installiere dann pip3.6 qt5-qtbase-devel-5.6.1-10.el7.x86_64 oder wie? Ich habe die obigen Schritte ausgeführt, nachdem ich die virtualenv aktiviert hatte, und das ist, was ich bekam: qt5-qtbase-devel-5.6.1-3.el7.x86_64: Entwicklungsdateien für qt5-qtbase Repo: epel Übereinstimmend aus: Dateiname: / usr / lib64 / qt5 / bin / qmake Dateiname: / usr / lib64 / qt5 / bin / qmake-qt5 Dateiname: / usr / bin / qmake-qt5 user3103193 vor 6 Jahren 0