首页 Ubuntu 如何在ubuntu-12.04中设置cairo的路径?

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

我需要用 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/pyc

我需要用
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

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/zhonghe/fwq/ubuntu/20201019/11397.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部