Sco*_*nce 5 indicator deb python3
我正在打包一个用 Python 3编写的应用程序,它使用:
from gi.repository import AppIndicator3
Run Code Online (Sandbox Code Playgroud)
当我列出依赖项时,我无法确定包包含哪些内容AppIndicator3
。我猜到了python-appindicator
,但是看看那个包,它似乎是针对 Python 2 的,而不是 Python 3 的。
我应该依赖哪个包?
您正在从 导入gi.repository
。该模块的文件是:
$ python3 -c 'import gi.repository, sys; print (sys.modules["gi.repository"].__file__)'
/usr/lib/python3/dist-packages/gi/repository/__init__.py
Run Code Online (Sandbox Code Playgroud)
该文件来自:
$ dpkg -S $(python3 -c 'import gi.repository, sys; print (sys.modules["gi.repository"].__file__)')
python3-gi: /usr/lib/python3/dist-packages/gi/repository/__init__.py
Run Code Online (Sandbox Code Playgroud)
因此,您需要的软件包(至少在 14.04 上)是python3-gi
.
归档时间: |
|
查看次数: |
6451 次 |
最近记录: |