发布于 2021-11-25 20:58:43
根据python3-gi-cairo包(apt show python3-gi-cairo)的描述.
GObject is an abstraction layer that allows programming with an object
paradigm that is compatible with many languages. It is a part of Glib,
the core library used to build GTK+ and GNOME.
.
This package contains the Python 3 Cairo bindings for GObject. It is mostly
used by other bindings to map their GObjects to Python objects.下面是python3-cairo包(apt show python3-cairo)的描述.
This package contains modules that allow you to use the Cairo vector
graphics library in Python3 programs.因此,第二个(python3-cairo)将是您想要的包。
尽管如此,的维护者pycairo建议您通过pip。对于Ubuntu/Debian,他们说要安装报头和pkg-config
$ sudo apt install libcairo2-dev pkg-config python3-dev然后安装pip3包
$ pip3 install pycairohttps://askubuntu.com/questions/1377608
复制相似问题