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

在 pkg-config 搜索路径中找不到包 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
4

1 回答 1

0

您需要遵循PyGObject 入门指南

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

如果是这样,安装 PyGObject 运行:

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
于 2020-09-05T18:48:37.033 回答