gpt4 book ai didi

python - 如何在 ubuntu-12.04 中设置 cairo 的路径?

转载 作者:太空狗 更新时间:2023-10-30 00:36:24 24 4
gpt4 key购买 nike

我需要用python3.2+安装pycairo,但是在我的系统中安装pycairo时出现错误,

Downloading/unpacking git+http://anongit.freedesktop.org/git/pycairo (from -r requirements.txt (line 7))
Cloning http://anongit.freedesktop.org/git/pycairo to /tmp/pip-ud145u-build
Running setup.py egg_info for package from git+http://anongit.freedesktop.org/git/pycairo
cairo >= 1.10.2 Failed
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found

Complete output from command python setup.py egg_info:
cairo >= 1.10.2 Failed

Package cairo was not found in the pkg-config search path.

Perhaps you should add the directory containing `cairo.pc'

to the PKG_CONFIG_PATH environment variable

No package 'cairo' found

最佳答案

首先安装libcairo2-dev:

sudo apt-get install libcairo2-dev

关于python - 如何在 ubuntu-12.04 中设置 cairo 的路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18504531/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com