python NameError: name 'file' is not defined

后端 未结 4 769
情话喂你
情话喂你 2020-12-13 08:26

I dont know much about python. I want to start working on the project and the setup instruction says:

pip install -r requirements-dev.txt

S

4条回答
  •  执笔经年
    2020-12-13 08:55

    file is not defined in Python3, which you are using apparently. The package you're instaling is not suitable for Python 3, instead, you should install Python 2.7 and try again.

    See: http://docs.python.org/release/3.0/whatsnew/3.0.html#builtins

提交回复
热议问题