使用pip从web项目的requirements.txt安装时出错

时间:2014-04-19 00:14:48

标签: python django dependencies pip pillow

这是我收到的错误消息

Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-xGZuOG-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/Pillow

sudo pip install -r requirements.txt的完整终端输出为http://pastebin.com/CAvW67f2

要求的内容:

Django==1.6.1
EasyProcess==0.1.6
Pillow==2.3.0
South==0.8.4
Whoosh==2.6.0
bottle==0.11.6
dj-database-url==0.2.2
dj-static==0.0.5
django-bootstrap3==2.6.1
django-toolbelt==0.0.1
gunicorn==18.0
httplib2==0.8
pyscreenshot==0.3.2
pystache==0.5.3
python-instagram==0.8.0
simplejson==3.3.2
static==1.0.2
wsgiref==0.1.2
yolk==0.4.3

我完全迷失了 - 感谢您对此提供任何帮助

2 个答案:

答案 0 :(得分:1)

在安装之前尝试在bash中运行:

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

Source

答案 1 :(得分:0)

在安装您的要求之前,请尝试在bash中运行此功能:

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"

Source