mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-04 09:32:20 +00:00
1.3 KiB
1.3 KiB
Installation
pip install pywebview
This will install pywebview with default dependencies. To install pywebview with PyQt5 (available on Linux and macOS) use
pip install pywebview[qt]
Dependencies
Windows
pythonnet requires to have .NET 4.0 installed
macOS
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
You have to install Linux dependencies manually. You can choose between GTK and QT.
PyGObject is used with GTK. To install dependencies on Ubuntu for both Python 3 and 2
sudo apt install python-gi python-gi-cairo python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
For other distributions, consult the PyGObject documentation
PyQt5 is used with QT. On Ubuntu you need following packages
sudo apt install python3-pyqt5 python3-pyqt5.qtwebkit python-pyqt5 python-pyqt5.qtwebkit libqt5webkit5-dev