您缺少 -r 命令标志,因此请再次使用
pip install -r requirements.txt
Run Code Online (Sandbox Code Playgroud)
和以前一样,pip只是尝试requirements.txt从期望它是包名称的远程存储中获取。
看 pip help install
用法:
pip install [options] <requirement specifier> [package-index-options]...
pip install [options] -r <requirements file> [package-index-options]...
...
pip also supports installing from "requirements files", which
provide an easy way to specify a whole environment to be installed.
Run Code Online (Sandbox Code Playgroud)
安装选项:
-r, --requirement <file> Install from the given requirements file.
This option can be used multiple times.
Run Code Online (Sandbox Code Playgroud)