反馈
我正在进行PyQt5安装(基于Qt5.2.1/Sip 4.15.5 API 11 ???)和标准Python3(3.3.2+)解释器兼容PyQt5(> = 3.3.2),因为它不是可以在Ubuntu 12.04上编译Python3.3-5,然后无法安装PyQt5(python 3.3.2或更高版本).
平台:
jeby6372@mercure:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.10
Release: 13.10
Codename: saucy
jeby6372@mercure:~$ uname -a
Linux mercure 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 07:38:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
在安装过程中一切似乎都运行良好,PyQt5导入有效,但是当我尝试通过python3解释器导入模块时,会出现此错误:
>>> import PyQt5
>>> from PyQt5.QtCore import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: the sip module implements API v10.0 to v10.1 but the PyQt5.QtCore …Run Code Online (Sandbox Code Playgroud)