2013-08-29 83 views
5

我需要與python3.2 +。但在我的系統中安裝pycairo時,我有錯誤安裝pycairo,如何在ubuntu-12.04中設置cairo的路徑?

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 

回答

11

安裝libcairo2-dev第一:

sudo apt-get install libcairo2-dev 
+0

優秀的偉大的工作。謝謝。 – dhana