【发布时间】:2016-08-13 22:55:43
【问题描述】:
我需要将一些 Python2+PyQt4 的代码移植到 Python3+PyQt5。
我开始安装 pip3
sudo apt-get install python3-pip
效果很好。试过了
sudo pip3 install PyQt5
Downloading/unpacking PyQt5
Could not find any downloads that satisfy the requirement PyQt5
Cleaning up...
No distributions at all found for PyQt5
网上我找到以下步骤:
http://pyqt.sourceforge.net/Docs/PyQt5/installation.html
但是他们太多了。在 Ubuntu 14.04 中安装 PyQt5 和 Python3 的最简单方法是什么?
【问题讨论】:
-
pip install pyqt5 工作得很好
-
安装过程顺利。但是出现运行时错误 QtCore.so: undefined symbol: PySlice_AdjustIndices
标签: python-3.x ubuntu-14.04 pyqt5