0

我正在尝试在 mu ubuntu 14.o4 LTS 上安装 PyQt4。安装手册说,在安装 PyQt 之前,必须安装 sip 版本至少为 4.16 。所以,我下载了存档并按照这里给出的方式安装了它

python configure.py

但是,当我键入 sip -V 以了解 sip 的版本时,我得到 4.15。此外,如果在这个阶段我尝试安装 PyQt,安装中止说至少需要 4.16 版的 sip 所以,我尝试卸载以前安装的 sip by pip uninstall sip. 这引发了一个错误,我在此处粘贴 pip.log 的内容。

------------------------------------------------------------
/usr/bin/pip run on Thu Oct  9 06:48:46 2014
Cannot uninstall requirement sip, not installed
Exception information:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/uninstall.py", line 59, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1035, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 505, in uninstall
    raise UninstallationError("Cannot uninstall requirement %s, not installed" % (self.name,))
UninstallationError: Cannot uninstall requirement sip, not installed

它清楚地表明系统上没有安装 sip。我对这里发生的事情感到困惑。请帮忙。

编辑 还请注意,import sip从 python 内部确认没有名为 sip 的模块存在。

4

0 回答 0