Python 2.7无法导入gi

时间:2017-12-03 23:06:08

标签: python python-3.x python-2.7 ubuntu

我尝试在Python2.7中执行import gi,但它显示错误ImportError: No module named gi

我做了sudo apt-get install,但我已经拥有它了: python-gi is already the newest version (3.24.1-2build1). 我还有文件/usr/lib/python2.7/dist-packages/gi/__init__.pyc

当我尝试使用Python3导入gi时 - 它完美无缺。

我有Python2.7,Python3.6和Ubuntu 17.10。

0 个答案:

没有答案
相关问题