开发库通常在软件中心中不太容易找到。通常可以使用apt-cache search
来帮助查找。例如:
apt-cache search python gobject
将显示与Python和GObject Introspection相关的所有软件包。以下是结果的片段:
python-gi - Python 2.x bindings for gobject-introspection libraries
python-gi-cairo - Python Cairo bindings for the GObject library
python-gi-dbg - Python bindings for the GObject library (debug extension)
python-gi-dev - development headers for GObject Python bindings
python-gobject - Python 2.x bindings for GObject - transitional package
python-gobject-2 - deprecated static Python bindings for the GObject library
python-gobject-2-dbg - deprecated static Python bindings for the GObject library (debug extension)
python-gobject-2-dev - development headers for the static GObject Python bindings
python-gobject-dbg - Python 2.x debugging modules for GObject - transitional package
python-gobject-dev - Python 2.x development headers for GObject - transitional package
python-pyudev - Python bindings for libudev
python3-gi - Python 3 bindings for gobject-introspection libraries
python3-gi-cairo - Python 3 Cairo bindings for the GObject library
python3-gi-dbg - Python 3 bindings for gobject-introspection libraries (debug extension)
python3-pyudev - Python3 bindings for libudev
由于您正在寻找Python 3,我建议安装
python3-gi
,这可能是您要找的软件包,所以...
sudo apt-get install python3-gi