我在Python3中打包了一个我写的应用程序,它使用:
from gi.repository import AppIndicator3在列出依赖项时,我无法确定哪个包包含AppIndicator3。我猜到了python-appindicator,但是看看这个包,它似乎是针对Python2的,而不是Python3。
我应该依赖哪个包裹?
发布于 2018-07-09 18:53:52
在GNOME桌面上,我遵循了穆鲁的回答在Ubuntu18.04上描述的过程,得到了与Ubuntu14.04的muru报告完全相同的输出:
python3-gi: /usr/lib/python3/dist-packages/gi/repository/__init__.py 但是,为了运行包含行的脚本
from gi.repository import AppIndicator3我不仅要安装python3-gi,还要安装libappindicator3-dev:
sudo apt install libappindicator3-dev发布于 2018-07-09 19:37:16
对于我自己的指示符,我使用gir1.2-appindicator3-0.1作为依赖项。如果我没记错的话,libappindicator3-dev是用于开发的。根据我的经验,这两种方法都是可行的。
发布于 2020-06-09 18:49:07
只需打开终端Ctrl+Alt+T并键入
sudo apt-get install gir1.2-appindicator3-0.1
不需要安装完整的开发包。
在ubuntu 20.04上测试。
我是怎么弄到这个的?
我尝试了sudo apt install libappindicator3-dev并按了'n‘键(不是安装)。从包列表中,第一个是gir1.2-appindicator3-0.1,所以安装就是这样。
https://askubuntu.com/questions/772064
复制相似问题