how to install QtSvg,QtWebKit,QtWebKitWidgets(all

2019-04-07 10:51发布

问题:

I want to install eric6-6.0.6.The result of

python3 install.py

is:

Checking dependencies
Python Version: 3.4.0
Found PyQt5
Found QScintilla2
Found QtGui
Found QtNetwork
Found QtPrintSupport
Found QtSql
Sorry, please install QtSvg.
Error: No module named 'PyQt5.QtSvg'
Sorry, please install QtWebKit.
Error: No module named 'PyQt5.QtWebKit'
Sorry, please install QtWebKitWidgets.
Error: No module named 'PyQt5.QtWebKitWidgets'
Found QtWidgets

But how to install the missing? I google a lot but fail to find the correct answer.

Anyone could do me a favor?

Thanks a lot!

回答1:

You can install these packages all with

sudo apt-get install <package>

I don't have an ubuntu distro set up right now, so I can't verify for you, but I don't think you'll need to install the third package.

Packages:

libqt5webkit5-dev

For python-3.x:

python3-pyqt5.qtsvg

python3-pyqt5.qtwebkit



标签: python qt qt5