![PyQt5 安装失败](https://linux22.com/image/980270/PyQt5%20%E5%AE%89%E8%A3%85%E5%A4%B1%E8%B4%A5.png)
我想安装 PyQt5。我按照说明操作。一切都正常(python configure.py
和make
),直到我运行以下命令:
sudo make install
我在哪里收到此错误信息:
cd QtCore/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /root/Bureau/PyQt-gpl-5.4.1/QtCore/QtCore.pro -o Makefile ) && make -f Makefile install
make[1]: Entering directory `/root/Bureau/PyQt-gpl-5.4.1/QtCore'
install -m 644 -p /root/Bureau/PyQt-gpl-5.4.1/QtCore/QtCore.so /usr/lib/python2.7/dist-packages/PyQt5/
mkdir: cannot create directory ‘/usr/share/sip’: Not a directory
make[1]: *** [install_sip] Error 1
make[1]: Leaving directory `/root/Bureau/PyQt-gpl-5.4.1/QtCore'
make: *** [sub-QtCore-install_subtargets-ordered] Error 2
如何修复这个问题?
答案1
您需要安装啜在安装 PyQt5 之前包装器。
或者,该包python3-pyqt5
位于 repos 中。