我不太了解 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 默认为 python3,这个项目不是 python3,但我不确定是否是这样。
谢谢。