ERROR: Invalid requirement: '.\\requirements.txt': Expected package name at the start of dependency specifier .\requirements.txt ^ Hint: It looks like a path. The path does exist. The argument you provided (.\requirements.txt) appears to be a requirements file. If that is the case, use the '-r' flag to install the packages specified within it.

在python中使用pip安装依赖时报错,如下图:

原因:安装命令错误。解决:加上 - r 即可。

正确安装命令:

pip install -r  .\requirements.txt

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐