从源安装 PyQt5:无法导入 PyQt5.sip
Installing PyQt5 from sources: Unable to import PyQt5.sip
我正在尝试从源代码构建 PyQt5。我是 运行 fedora 28,我通过 dnf
安装了 Qt5。在 this 之后安装 Sip 似乎没问题。但是当我尝试配置 PyQt 时,出现了这个错误:
# python3 configure.py -q /usr/bin/qmake-qt5
Querying qmake about your Qt installation...
Error: Unable to import PyQt5.sip. Make sure you have configured SIP to
create a private copy of the sip module.
根据 doc 我做了:
# python3 configure.py --sip-module private.sip
# python3 configure.py -q /usr/bin/qmake-qt5 -n private.sip
但我仍然得到错误。所以我猜我没有正确使用它。有什么建议吗?
P.S: 我知道(我也知道)可以通过 pip
来完成,但我面临的问题与 here
您是否正在尝试安装 sip-4.19.10 和 PyQt5_gpl-5.11.1?
尝试组合使用 sip-4.19.8 和 PyQt5_gpl-5.10.1.
https://sourceforge.net/projects/pyqt/files/PyQt5/
https://sourceforge.net/projects/pyqt/files/sip/
我正在尝试从源代码构建 PyQt5。我是 运行 fedora 28,我通过 dnf
安装了 Qt5。在 this 之后安装 Sip 似乎没问题。但是当我尝试配置 PyQt 时,出现了这个错误:
# python3 configure.py -q /usr/bin/qmake-qt5
Querying qmake about your Qt installation...
Error: Unable to import PyQt5.sip. Make sure you have configured SIP to
create a private copy of the sip module.
根据 doc 我做了:
# python3 configure.py --sip-module private.sip
# python3 configure.py -q /usr/bin/qmake-qt5 -n private.sip
但我仍然得到错误。所以我猜我没有正确使用它。有什么建议吗?
P.S: 我知道(我也知道)可以通过 pip
来完成,但我面临的问题与 here
您是否正在尝试安装 sip-4.19.10 和 PyQt5_gpl-5.11.1?
尝试组合使用 sip-4.19.8 和 PyQt5_gpl-5.10.1.
https://sourceforge.net/projects/pyqt/files/PyQt5/ https://sourceforge.net/projects/pyqt/files/sip/