我正在旧的Linux系统(CentOS 4.4)上安装PyQt4,由于硬件兼容性原因无法升级。我安装了Python 2.6,QT4和SIP,PyQt4的安装没有给我任何错误。
当我运行Python时,会发生这种情况:
Python 2.6.2 (r262:71600, May 11 2011, 14:18:37)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt4
>>> import PyQt4.Qsci
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named Qsci
我环顾四周,找到了/usr/local/lib/python2.6/site-packages/PyQt4/uic/widget-plugins/qscintilla.py
,这几乎没有任何非评论内容:
pluginType = MODULE
def moduleInformation():
return "PyQt4.Qsci", ("QsciScintilla", )
有什么想法吗?