枕头虚拟化安装失败:“命令”gcc-4.2“失败” [英] Pillow virtualenv install fails: "command 'gcc-4.2' failed"

查看:204
本文介绍了枕头虚拟化安装失败:“命令”gcc-4.2“失败”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在虚拟化中安装夹层。它在枕头安装失败,并出现gcc-4.2相关错误,这是摘录。我实际上可以在我的机器上成功安装,而不是在virtualenv里面。我想要它在一个venv然而。我应该怎么办?

I am installing Mezzanine in a virtualenv. It fails at the Pillow installation with a gcc-4.2 related error of which this is an excerpt. I can actually install it successfully on my machine but not inside of a virtualenv. I want it in a venv however. What should I do?

`decode.c:465: error: ‘COMPRESSION_SGILOG’ undeclared (first use in this function)

decode.c:468: error: ‘COMPRESSION_SGILOG24’ undeclared (first use in this function)

decode.c:471: error: ‘COMPRESSION_CCITTRLEW’ undeclared (first use in this function)

In file included from decode.c:416:

libImaging/TiffDecode.h:10:20: error: tiffio.h: No such file or directory

libImaging/TiffDecode.h:13:18: error: tiff.h: No such file or directory

In file included from decode.c:416:

libImaging/TiffDecode.h:30: error: expected specifier-qualifier-list before     ‘tdata_t’

libImaging/TiffDecode.h:43: error: expected declaration specifiers or ‘...’ before ‘ttag_t’

decode.c: In function ‘PyImaging_LibTiffDecoderNew’:

decode.c:444: error: ‘COMPRESSION_CCITTRLE’ undeclared (first use in this function)

decode.c:444: error: (Each undeclared identifier is reported only once

decode.c:444: error: for each function it appears in.)

decode.c:447: error: ‘COMPRESSION_CCITTFAX3’ undeclared (first use in this function)

decode.c:450: error: ‘COMPRESSION_CCITTFAX4’ undeclared (first use in this function)

decode.c:453: error: ‘COMPRESSION_OJPEG’ undeclared (first use in this function)

decode.c:456: error: ‘COMPRESSION_ADOBE_DEFLATE’ undeclared (first use in this function)

decode.c:459: error: ‘COMPRESSION_THUNDERSCAN’ undeclared (first use in this function)

decode.c:462: error: ‘COMPRESSION_DEFLATE’ undeclared (first use in this function)

decode.c:465: error: ‘COMPRESSION_SGILOG’ undeclared (first use in this function)

decode.c:468: error: ‘COMPRESSION_SGILOG24’ undeclared (first use in this function)

decode.c:471: error: ‘COMPRESSION_CCITTRLEW’ undeclared (first use in this function)

lipo: can't figure out the architecture type of: /var/tmp//ccaRiavj.out

error: command 'gcc-4.2' failed with exit status 1

----------------------------------------
Command /Users/m/.virtualenvs/slinc/bin/python -c "import     setuptools;__file__='/Users/m/.virtualenvs/slinc/build/pillow/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-77NDIT-record/install-record.txt --single-version-externally-managed --install-headers /Users/m/.virtualenvs/slinc/bin/../include/site/python2.7 failed with error code 1 in /Users/m/.virtualenvs/slinc/build/pillow
Storing complete log in /Users/m/.pip/pip.log`


推荐答案

尝试在你的linux控制台,然后再试一次:

try that in you linux console and then try again:

sudo apt-get install python-dev

这篇关于枕头虚拟化安装失败:“命令”gcc-4.2“失败”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆