问题描述
请看日志```
raceback (most recent call last):
File "webview/guilib.py", line 39, in import_gtk
File "pyimod02_importers.py", line 457, in exec_module
File "webview/platforms/gtk.py", line 28, in
ModuleNotFoundError: No module named 'gi'
2026-05-27 11:09:29 | ERROR | 窗口创建失败:
You must have either QT or GTK with Python extensions installed in order to use pywebview.
Windows: 安装 Edge WebView2
Mac: 系统 >= 10.13
Linux: apt install webkit2gtk-4.0
============================================================
错误: 窗口创建失败
窗口创建失败:
You must have either QT or GTK with Python extensions installed in order to use pywebview.
Windows: 安装 Edge WebView2
Mac: 系统 >= 10.13
Linux: apt install webkit2gtk-4.0
2026-05-27 11:09:29 | INFO | atexit cleanup triggered
2026-05-27 11:09:29 | INFO | Stopping all channels...
但是:
在 Debian 13 (Trixie) 中,官方已经完全移除了 webkit2gtk-4.0(因为它依赖于已废弃的 libsoup2),并全面转向了 webkit2gtk-4.1(基于 libsoup3)和 webkitgtk-6.0。
问题描述
请看日志```
raceback (most recent call last):
File "webview/guilib.py", line 39, in import_gtk
File "pyimod02_importers.py", line 457, in exec_module
File "webview/platforms/gtk.py", line 28, in
ModuleNotFoundError: No module named 'gi'
2026-05-27 11:09:29 | ERROR | 窗口创建失败:
You must have either QT or GTK with Python extensions installed in order to use pywebview.
Windows: 安装 Edge WebView2
Mac: 系统 >= 10.13
Linux: apt install webkit2gtk-4.0
============================================================
错误: 窗口创建失败
窗口创建失败:
You must have either QT or GTK with Python extensions installed in order to use pywebview.
Windows: 安装 Edge WebView2
Mac: 系统 >= 10.13
Linux: apt install webkit2gtk-4.0
2026-05-27 11:09:29 | INFO | atexit cleanup triggered
2026-05-27 11:09:29 | INFO | Stopping all channels...