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

Posted zzcsza

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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的主要内容,如果未能解决你的问题,请参考以下文章

跪求答案 Error:could not open ' D:\ JAVA \ lib \ i386 \

domino无法启动:could not open id file

Could not open input file: composer.phar

Nginx启动报错: could not open error log file: open() &q

Could not open Selected VM debug port (8700) (转)

“laravel.log” could not be opened: failed to open stream