从需求安装时发生错误。使用pip的web项目的txt

时间:2022-04-21 19:21:08

This is the error message I received

这是我收到的错误消息。

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

The full terminal output from sudo pip install -r requirements.txt is http://pastebin.com/CAvW67f2

全终端输出来自sudo pip安装-r要求。三是http://pastebin.com/CAvW67f2

The content of requirements:

的内容要求:

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

I'm completely lost - thanks for any help on this

我完全迷路了——谢谢你的帮助

2 个解决方案

#1


1  

Try running this in your bash before installing:

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

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

Source

#2


0  

Try running this in your bash before installing your requirements:

在安装您的需求之前,尝试在您的bash中运行这个:

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

Source

#1


1  

Try running this in your bash before installing:

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

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

Source

#2


0  

Try running this in your bash before installing your requirements:

在安装您的需求之前,尝试在您的bash中运行这个:

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

Source