Files
pywebview/docs/guide/installation.md

1.2 KiB

Installation

pip install pywebview

This will install pywebview with default dependencies.

Dependencies

Windows

pythonnet

pythonnet requires to have .NET 4.0 installed

macOS

pyobjc

PyObjC comes presintalled with the Python bundled in macOS. For a stand-alone Python installation you have to install it separately. You can also use QT5 in macOS

Linux

If you are running KDE, QT will be chosen, otherwise GTK is the default. Additionally for both GTK and QT you have to install WebKit separately.

PyGObject library is used with GTK. To install dependencies on Ubuntu

Python 3

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0

Python 2

sudo apt install python-gi python-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0



PyQt5 is used with QT. On Ubuntu you need following packages

Python 3

sudo apt install python3-pyqt5 python3-pyqt5.qtwebkit libqt5webkit5-dev 

Python 2

sudo apt install python-pyqt5 python-pyqt5.qtwebkit libqt5webkit5-dev