【问题标题】:sdaps installation give pycairo location errorsdap​​s 安装给出 pycairo 位置错误
【发布时间】:2014-01-13 14:16:28
【问题描述】:

我正在尝试安装 sdap,但是当我运行 setup.py install 命令时,出现以下错误:

kashif@crunchbang:~/sdaps-1.0.5$ python setup.py install
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found

我试图通过安装来解决这个问题

kashif@crunchbang:~/sdaps-1.0.5$ sudo apt-get install python-cairo
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python-cairo is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 148 not upgraded.

但同样的问题仍然存在:

kashif@crunchbang:~/sdaps-1.0.5$ python setup.py install
Package pycairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pycairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pycairo' found

你知道导致这个问题的原因吗?

【问题讨论】:

标签: python pycairo


【解决方案1】:

在继续之前安装以下 Ubuntu/Debian 软件包依赖项:

sudo apt-get install python-distutils-extra python-cairo-dev libtiff5-dev \
libcairo2-dev libglib2.0-dev python2.7-dev python-zbar python-gi \
python-gi-cairo gir1.2-gtk-3.0 pdftk python-pypdf python-reportlab \
python-imaging 

来源:http://sdaps.org/Documentation/Dependencies

【讨论】:

  • 感谢 Adam,它成功了,只是缺少 python-cairo-dev 依赖项,我通过安装修复它:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-11-25
  • 1970-01-01
  • 1970-01-01
  • 2018-07-16
  • 2012-07-14
  • 2018-06-16
  • 1970-01-01
相关资源
最近更新 更多