我正在从源代码构建krita,每当我运行cmake .. -DCMAKE_PREFIX_PATH=/Path/to/PyQt5或cmake .. -DPYQT_SIP_DIR_OVERRIDE=Path/to/PyQt5时,我都会收到这样的警告,它找不到PyQt5
The following OPTIONAL packages have not been found:
* PyQt5 (required version >= 5.6.0), Python bindings for Qt5., <https://www.riverbankcomputing.com/software/pyqt/download5>当我运行、找到或找到它时,它显示出我在以下地方有PyQt5:
~/anaconda3/share/sip/PyQt5/usr/share/sip/PyQt5~/anaconda3/share/sip/PyQt5~/anaconda3/pkgs/pyqt-5.6.0-py36h0386399_5/lib/python3.6/site-packages/PyQt5/usr/lib64/qt5/plugins/PyQt5~/anaconda3/lib/python3.6/site-packages/PyQt5我试过前三种,但它们不起作用。更多信息:我从fedora存储库安装了python-qt-devel。
我错过了什么我该做什么?
发布于 2022-06-05 00:55:42
尝试检查安装了哪个Python PyQt5。
在我的系统中,PyQt5是为Python3.9安装的。但是,cmake使用Python3.10,无法找到PyQt5。为Python3.10安装PyQt5解决了这个问题。
https://stackoverflow.com/questions/51108478
复制相似问题