我正在尝试为 pyqt 安装 sip 并尝试让 checkinstall 工作。但它一直说
Installing Debian package... FAILED!
日志文件中的内容如下:
(Reading database ... 191312 files and directories currently installed.)
Preparing to unpack .../sip_4.16.3-1_amd64.deb ...
Unpacking sip (4.16.3-1) ...
dpkg: error processing archive /home/user/sip-4.16.3/sip_4.16.3-1_amd64.deb (--install):
trying to overwrite '/usr/include/python2.7/sip.h', which is also in package python-sip-dev 4.15.5-1build1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing: /home/user/sip-4.16.3/sip_4.16.3-1_amd64.deb
有人知道我该如何修复这个问题并让它工作吗?我找不到任何关于如何修复这个问题的信息。看起来 sip 已成功安装 - 我可以检查版本号。
sip-4.16.3 文件夹中似乎还有一个 deb 文件。但是当我尝试安装或删除时,我得到了
dpkg: error processing archive sip_4.16.3-1_amd64.deb (--install):
trying to overwrite '/usr/include/python2.7/sip.h', which is also in package python-sip-dev 4.15.5-1build1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing: sip_4.16.3-1_amd64.deb
答案1
您已安装 SIP。
您的错误消息表明该文件/usr/include/python2.7/sip.h
已经存在,并且是该文件的一部分python-sip-dev
。
您可以通过两种方式解决此问题:
python-sip-dev
使用卸载sudo apt-get uninstall
。- 没做什么。