我试图在 Ubutun 上安装 PyQt5,但在灌输过程中出现错误;
install -m 644 -p /home/hrn/Applications/PyQt-gpl-5.4/__init__.py /usr/lib/python3.4/site-packages/PyQt5/
cp -f -R home/hrn/Applications/PyQt-gpl-5.4/pyuic/uic /usr/lib/python3.4/site-packages/PyQt5/
install -m 755 -p /home/hrn/Applications/PyQt-gpl-5.4/pyuic5 /usr/bin/
strip /usr/bin/pyuic5
strip:/usr/bin/pyuic5: File format not recognized
Makefile:1988: recipe for target 'install_pyuic5' failed
make: [install_pyuic5] Error 1 (ignored)
PYTHONPATH 显示 PyQt5 的正确路径,但如果我尝试导入模块,则会出现错误
hrn@hrn-nix:~/Applications/PyQt-gpl-5.4$ python3
Python 3.4.2 (default, Oct 8 2014, 13:08:17)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtCore
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'PyQt5'
>>>
无论我尝试什么,我都无法解决。我错过了什么?