ModuleNotFoundError:安装python-poppler-qt5时没有名为"sipdistutils"的模块 [英] ModuleNotFoundError: No module named 'sipdistutils' while install python-poppler-qt5
问题描述
我一直在尝试安装python-poppler-qt4
,但是它显示错误ModuleNotFoundError: No module name sipdistutils
.
当我尝试安装sipdistutils
时,它再次显示错误.
I have been trying to install python-poppler-qt4
but it shows the error that ModuleNotFoundError: No module name sipdistutils
.
When I tried installing the sipdistutils
, it again showed the error.
错误消息
推荐答案
我在这里发现了类似的问题: https://github.com/wbsoft/python-poppler-qt5/issues/14
I have found a simillar issue here: https://github.com/wbsoft/python-poppler-qt5/issues/14
我认为sipdistutils
应该是sip
软件包的一部分.请验证是否已安装:
I think that sipdistutils
should be part of sip
package. Please verify if you have it installed:
$ pip freeze | grep sip
sip==4.19.1
如果没有输出,请使用pip install sip
安装.
If there's no output install it with pip install sip
.
如果这无法解决某些建议的解决方案:
If this won't work some proposed solutions:
似乎sip的pip版本未安装sipdistutils.要从源代码安装它,可以执行以下操作:
wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz tar zxvf sip-4.19.3.tar.gz cd sip-4.19.3 python configure.py make make install
It seems like the pip version of sip does not install sipdistutils. To install it from source, you can do that:
wget https://sourceforge.net/projects/pyqt/files/sip/sip-4.19.3/sip-4.19.3.tar.gz tar zxvf sip-4.19.3.tar.gz cd sip-4.19.3 python configure.py make make install
您可以从Riverbank的Merurial服务器(即这里.它是独立的.只需将其放入您的Python site-packages文件夹
You can get the sipdistutils.py from riverbank's mercurial server, i.e. from here. It is self-contained. Just place it into your Python site-packages folder
这篇关于ModuleNotFoundError:安装python-poppler-qt5时没有名为"sipdistutils"的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!