问题描述
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
解决方法
您需要按照Getting Started with PyGObject的说明进行操作。
您正在使用Ubuntu吗?您没有说您的发行版是什么。
如果是这样,请运行以下命令来安装PyGObject:
sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0