Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt

最近安装python,已经安装好,cmd终端中输入python、pip等命令都有用

然而在配置requirements.txt文件过程中,执行语句

“pip install -r requirement.txt”

 

时报错

“Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'”,

 

经过一番折腾,查出原因是在执行这一语句前需要先创建requirements.txt 文件,所以必须先执行

“pip freeze > requirements.txt”

后才能执行

“pip install -r requirement.txt”

 

以配置requirements.txt.

你可能感兴趣的:(Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt)