如何从我的分发包中安装pygobject.并安装cairo和GTK所需的所有头文件


when i run the command i have this error message
$gnuhealth@ghealth:~ $ pip3 install --user --upgrade gnuhealth-client

在pkg配置搜索路径中找不到软件包cairo-gobject。

Perhaps you should add the directory containing `cairo-gobject.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-gobject' found
Command '('pkg-config', '--print-errors', '--exists', 'cairo-gobject >= 0')' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly

您需要遵循PyGObject入门说明。

你在用Ubuntu吗?你没有说你的分销是什么。

如果是,要安装PyGObject,请运行:

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0

最新更新