我正在使用 Ubuntu Unity 22.10。我使用以下命令安装了 Wikipedia 阅读器 Wike
sudo apt install wike
但是,当我尝试打开 Wike 时,它无法加载。如果从终端运行,则输出为,
$ wike
Traceback (most recent call last):
File "/usr/bin/wike", line 47, in <module>
from wike import application
File "/usr/share/wike/wike/application.py", line 29, in <module>
from wike.window import Window
File "/usr/share/wike/wike/window.py", line 26, in <module>
from wike.header import HeaderBar
File "/usr/share/wike/wike/header.py", line 29, in <module>
from wike.search import SearchEntry
File "/usr/share/wike/wike/search.py", line 26, in <module>
from wike import wikipedia
File "/usr/share/wike/wike/wikipedia.py", line 20, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
答案1
解决方案是手动安装python3-requests
,它应该是一个依赖项。
sudo apt install python3-requests