如何在ubuntu-12.04中设置cairo的路径?
发布时间:2020-10-19 15:54:01 所属栏目:Ubuntu 来源:互联网
导读:我需要用 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 (编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |