python - 使用 pip 从 Web 项目的 requirements.txt 安装时出错

标签 python django dependencies pip python-imaging-library

这是我收到的错误信息

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

我完全迷路了 - 感谢您对此的任何帮助

最佳答案

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

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

Source

关于python - 使用 pip 从 Web 项目的 requirements.txt 安装时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23164270/

相关文章:

python - 我如何保持干燥?

python - 带有 finally 子句的 try block 中不允许使用 python 2.4 的 yield 的解决方法

python - 这段代码中 sum(rlist) == len(list) 的目的是什么?

Python,在列中拆分多个字符串

python - 基于 django 模型中的子组在 SQL 中进行插值

javascript - 获取特定 channel 每分钟的推文数量

gradle - Gradle构建的 war 任务添加了比build.gradle中的依赖项更多的jar

java - 随机无法识别 Maven 依赖项

ajax - Django 不允许使用奇怪的方法

python - 在 azure 上安装附加组件以与 python webapp 一起使用