在CentOS 8上安装python3-qt5-webengine

时间:2020-09-01 08:40:46

标签: python pyqt5 centos8

我要import PyQt5.QtWebEngineWidgets,因为pip3 install PyQt5无法检测到我的Qt5安装(使用pip版本会导致找不到Qt_5_PRIVATE_API错误),所以我在CentOS上安装了python3-qt5的发行版软件包8台笔记本电脑如下:

python-qt5-rpm-macros.noarch                       5.13.1-1.el8                                     @@System               
python3-pyqt5-sip.x86_64                           4.19.19-1.el8                                    @@System               
python3-qt5.x86_64                                 5.13.1-1.el8                                     @AppStream             
python3-qt5-base.x86_64                            5.13.1-1.el8                                     @AppStream             
python3-qt5-devel.x86_64                           5.13.1-1.el8                                     @PowerTools     

但是,没有针对CentOS的python3-qt5-webengine软件包,因此我尝试按照指南here从源代码进行构建,但出现错误:

Configure summary:

Qt WebEngine:
  Embedded build ......................... no
  Full debug information ................. no
  Pepper Plugins ......................... yes
  Printing and PDF ....................... yes
  Proprietary Codecs ..................... no
  Spellchecker ........................... yes
  Native Spellchecker .................... no
  WebRTC ................................. yes
  Use System Ninja ....................... no
  Geolocation ............................ yes
  WebChannel support ..................... yes
  Use v8 snapshot ........................ yes
  Kerberos Authentication ................ no
  Support qpa-xcb ........................ no
  Use ALSA ............................... no
  Use PulseAudio ......................... yes
  Optional system libraries used:
    re2 .................................. no
    icu .................................. no
    libwebp, libwebpmux and libwebpdemux . no
    opus ................................. no
    ffmpeg ............................... no
    libvpx ............................... no
    snappy ............................... no
    glib ................................. yes
    zlib ................................. yes
    minizip .............................. no
    libevent ............................. no
    jsoncpp .............................. no
    protobuf ............................. no
    libxml2 and libxslt .................. no
    lcms2 ................................ no
    png .................................. yes
    JPEG ................................. no
    harfbuzz ............................. no
    freetype ............................. yes
  Required system libraries:
    fontconfig ........................... yes
    dbus ................................. no
    nss .................................. yes
    khr .................................. yes
    glibc ................................ yes
  Required system libraries for qpa-xcb:
    x11 .................................. yes
    libdrm ............................... no
    xcomposite ........................... no
    xcursor .............................. no
    xi ................................... yes
    xtst ................................. yes

Qt is now configured for building. Just run 'make'.
Once everything is built, you must run 'make install'.
Qt will be installed into '/usr'.

Prior to reconfiguration, make sure you remove any leftovers from
the previous build.

 
A suitable version of dbus could not be found.
QtWebEngine will not be built.

0 个答案:

没有答案