Installing PyQt5 from sources: Unable to import PyQt5.sip

巧了我就是萌 提交于 2019-12-01 07:34:03

问题


I'm trying to build PyQt5 from the sources. I'm running fedora 28 and I installed Qt5 via dnf. Installing Sip following this seems OK. But when i try to configure PyQt i got this error:

# 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.

According to the doc I did:

# python3 configure.py --sip-module private.sip
# python3 configure.py -q /usr/bin/qmake-qt5 -n private.sip

But i still get the error. So I'm guessing I'm not using it properly. Any suggestions ?

P.S: I know (and i did) that it can be done via pip but i'm facing the same problem than here


回答1:


Are you trying to install sip-4.19.10 and PyQt5_gpl-5.11.1?

Try a combination of sip-4.19.8 and PyQt5_gpl-5.10.1.

https://sourceforge.net/projects/pyqt/files/PyQt5/ https://sourceforge.net/projects/pyqt/files/sip/



来源:https://stackoverflow.com/questions/51098152/installing-pyqt5-from-sources-unable-to-import-pyqt5-sip

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!