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

dha*_*ana 5 python pycairo python-3.x ubuntu-12.04

我需要用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
Run Code Online (Sandbox Code Playgroud)

fal*_*tru 11

libcairo2-dev先安装:

sudo apt-get install libcairo2-dev
Run Code Online (Sandbox Code Playgroud)