2013-08-29 41 views
5

tôi cần phải cài đặt pycairo với python3.2 + .Nhưng tôi có lỗi khi cài đặt pycairo trong hệ thống của tôi,Cách đặt đường dẫn cho cairo trong ubuntu-12.04?

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 

Trả lời

11

Install libcairo2-dev đầu tiên:

sudo apt-get install libcairo2-dev 
+0

Tuyệt vời làm việc tuyệt vời. Cảm ơn. – dhana

Các vấn đề liên quan