我一直在尝试安装python-poppler-qt4
但它显示了错误ModuleNotFoundError: No module name sipdistutils
。
当我尝试安装时sipdistutils
,它再次显示错误。
错误信息
我在这里发现了类似的问题:https://github.com/wbsoft/python-poppler-qt5/issues/14 https://github.com/wbsoft/python-poppler-qt5/issues/14
我觉得sipdistutils
应该是一部分sip
包裹。请验证您是否已安装:
$ pip freeze | grep sip
sip==4.19.1
如果没有输出安装它pip install sip
.
如果这不起作用,建议一些解决方案:
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
You can get the sipdistutils.py from riverbank's mercurial server, i.e. from here https://www.riverbankcomputing.com/hg/sip/file/14685a6e736e/sipdistutils.py. It is self-contained. Just place it into your Python site-packages folder
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)