小编ane*_*olf的帖子

在virtualenv上安装pycups时出错

我正在尝试使用pip在一个隔离(--no-site-package)virtualenv中安装pycups,我得到了这个回溯.我无法弄清楚我做错了什么.任何的想法?

谢谢,

$ pip install pycups下载/解压缩pycups运行setup.py egg_info获取包pycups

安装收集的软件包:pycups运行setup.py install for pycups构建'cups'扩展gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION ="1.9.66" -I/usr/include/python2.7 -c cupsmodule.c -o build/temp.linux-x86_64-2.7/cupsmodule.o cupsmodule.c:23:23:致命错误:cups/cups.h:El fitxer o导演没有existeix编译终止.错误:命令'gcc'失败,退出状态1完成输出命令/ home/jmartin/workspace/trytond/bin/python -c"import setuptools; file ='/ home/jmartin/workspace/trytond/build/pycups/setup .py'; exec(compile(open(file).read().replace('\ r \n','\n'),file,'exec'))"install --record/tmp/pip-NbMOAM -record/install-record.txt --single-version-external-managed --install-headers /home/jmartin/workspace/trytond/include/site/python2.7:running install

运行构建

运行build_ext

建立'杯子'延伸

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DVERSION ="1.9.66"-I/usr/include/python2.7 -c cupsmodule.c -o建立/ temp.linux-x86_64-2.7/cupsmodule.o

cupsmodule.c:23:23:致命错误:cups/cups.h:El fitxer o directori no existeix

编译终止.

错误:命令'gcc'失败,退出状态为1


Command/home/jmartin/workspace/trytond/bin/python -c"import setuptools; …

linux virtualenv python-2.7

5
推荐指数
1
解决办法
6478
查看次数

标签 统计

linux ×1

python-2.7 ×1

virtualenv ×1