小编Sch*_*tti的帖子

Python3 GTK 模块 gi 未找到

我按照安装指南进行操作: https://pygobject.readthedocs.io/en/latest/getting_started.html

然后我用“2.1.简单示例”测试了教程 https://python-gtk-3-tutorial.readthedocs.io/en/latest/introduction.html#simple-example

python3 ./my.py失败如下:

File "./my.py", line 1, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
Run Code Online (Sandbox Code Playgroud)

那么我该怎么做才能使导入成功呢?


说明:Ubuntu 16.04.6 LTS

python gtk3 16.04

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

16.04 ×1

gtk3 ×1

python ×1