Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在MSYS2(Windows 10)中安装PyQtWebEngine_Python_Pyqt5_Msys2_Qtwebengine - Fatal编程技术网

Python 如何在MSYS2(Windows 10)中安装PyQtWebEngine

Python 如何在MSYS2(Windows 10)中安装PyQtWebEngine,python,pyqt5,msys2,qtwebengine,Python,Pyqt5,Msys2,Qtwebengine,首先,我尝试使用pip安装PyQtWebEngine: pip安装PyQtWebEngine 但它失败了 然后我下载了PyQtWebEngine源代码 之后,我使用pacman命令安装sip: pacman-S mingw-w64-x86_64-sip4 之后,我将cd下载到PyQtWebEngine的源代码中,最后运行: python configure.py--sip/c/msys64/mingw64/bin/sip.exe--qmake/c/msys64/mingw64/bin/qmake

首先,我尝试使用pip安装PyQtWebEngine:

pip安装PyQtWebEngine

但它失败了

然后我下载了PyQtWebEngine源代码

之后,我使用pacman命令安装sip:

pacman-S mingw-w64-x86_64-sip4

之后,我将cd下载到PyQtWebEngine的源代码中,最后运行:

python configure.py--sip/c/msys64/mingw64/bin/sip.exe--qmake/c/msys64/mingw64/bin/qmake.exe

输出:

Configuring PyQtWebEngine 5.15.2...
The PyQtWebEngine .sip files will be installed in
C:/msys64/mingw64/lib/python3.8/site-packages/PyQt5/bindings.
PyQtWebEngine will be installed in
C:/msys64/mingw64/lib/python3.8/site-packages/PyQt5.
PyQt 5.15.4 is being used.
Qt 5.15.2 is being used.
sip 4.19.25 is being used.
The sip executable is C:/msys64/mingw64/bin/sip.exe.
The PEP 484 stubs will be installed in
C:/msys64/mingw64/lib/python3.8/site-packages/PyQt5.
The QScintilla API file will be installed in
C:/msys64/mingw64/share/qt5/qsci/api/python.
Generating the C++ source for the QtWebEngine module...
Error: Unable to create the C++ code.

我搜索这个错误(为QtWebEngress模块生成C++源… 错误:无法创建C++代码),并有与SIP版本相关的答案。 所以问题是,如何在MSYS2中安装PyQtWebEngine(PyQt 5.15.2)


注意:我在qt论坛上读到了不可能的内容,但我希望此模块在pyqt5主程序中显示一些聊天iFrame。

我不知道PyQtWebEngine和PyQtWebKit的区别,但这只是我需要的