无法使用“ PIP install -r sumpllience.txt”安装要求。
我正在尝试使用窗口中的bash上使用“ pip install -r unignts.txt”命令安装软件包。 下面显示了要求
Package Version
- - - - - - - -
absl-py 1.0.0
appdirs 1.4.4
astroid 2.11.2
astunparse 1.6.3
audioread 2.1.9
black 22.3.0
cachetools 5.0.0
certifi 2021.10.8
~~~~ ~~~~~
。但是,我有一个错误: 错误:无效的要求:“软件包版本”(来自需求的第1行)
,然后,我在requients.txt中没有第一行尝试,但是我收到了相同的错误消息。 我该如何处理这个问题?
I'm trying to install packages using "pip install -r requirements.txt" command on bash in Window.
Below shows the requirements.txt
Package Version
- - - - - - - -
absl-py 1.0.0
appdirs 1.4.4
astroid 2.11.2
astunparse 1.6.3
audioread 2.1.9
black 22.3.0
cachetools 5.0.0
certifi 2021.10.8
~~~~ ~~~~~
However, I got a Error like:
ERROR: Invalid requirement: 'Package Version' (from line 1 of requirements.txt)
And then, I tried without first line in requirements.txt, but I got the same error message.
How can I handle this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您的要求。
使用
pip冻结> unignts.txt
创建/更新unignts.txt文件Your requirements.txt should be in the format:
Use
pip freeze > requirements.txt
to create/update a requirements.txt file使用 pip docs :
Use proper comments as descripbed in the pip docs:
对于任何在此问题上降落的人,您可能会执行
pip列表冻结>需求.txt
应为pip冻结>要求
如上所述。For anyone that lands on this problem you likely did a
pip list freeze > requirements.txt
when it should bepip freeze > requirements
as suggested above.