我对python不太了解。我想开始该项目,安装说明说:
pip install -r requirements-dev.txt
足够简单。问题是我得到了这个:
Downloading/unpacking gunicorn==0.13.4 (from -r requirements.txt (line 7))
Running setup.py egg_info for package gunicorn
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/gunicorn/setup.py", line 18, in <module>
long_description = file(
NameError: name 'file' is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/gunicorn/setup.py", line 18, in <module>
long_description = file(
NameError: name 'file' is not defined
我不明白这个问题。也许有人可以帮忙?
我在 Arch Linux 上运行它,python 默认为 python 3,项目不是 python 3,但我不确定是否是这样。
谢谢。