请帮忙安装Qt centos 7

use*_*193 4 linux centos python qt installation

我有 2 个 python 版本,python3.6 安装在 virtualenv 上供开发使用,我正在尝试安装 PyQt 和 Qt 包,仅用于 python3.6,

我已经使用 sudo pip3.6 install pyqt5 安装了 PyQt5,我遵循的说明说 Qt 包含在 PyQt5 中,也在 /usr/lib64/python3.6/site-packages/PyQt5 的 pyqt5 包中,我看到里面的 Qt 文件夹, 但是当我把 qmake --version 放在检查 qt 版本时,它给了我以下错误:

qmake --version

bash: qmake: command not found...

Similar command is: 'make'
Run Code Online (Sandbox Code Playgroud)

使用时:

make --version
Run Code Online (Sandbox Code Playgroud)

它给出了以下内容:

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.
Run Code Online (Sandbox Code Playgroud)

使用

rpm -ql qt
Run Code Online (Sandbox Code Playgroud)

给出以下内容:

package qt is not installed
Run Code Online (Sandbox Code Playgroud)

当我把 sudo pip3.6 install qt5 重新安装时,它给了我以下错误“```

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

当我使用 yum install 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: 
Run Code Online (Sandbox Code Playgroud)

mirror.sov.uk.goscomb.net * epel:ftp.heanet.ie * 附加:mirror.ox.ac.uk * ius:lon.mirror.rackspace.com * 更新:mirror.sov.uk.goscomb.net 否包 qt5 可用。错误:无事可做

有人可以帮忙吗。谢谢

Knu*_*sen 11

找到 qt5 包:# yum search qt5...并搜索 qmake:yum provides */bin/qmake*

安装 CentOS 7 系统 qt5 :

# yum install qt5-qtbase-devel
Run Code Online (Sandbox Code Playgroud)

... 提供 /usr/bin/qmake-qt5