无法使用“ PIP install -r sumpllience.txt”安装要求。

发布于 2025-01-24 01:17:35 字数 559 浏览 2 评论 0原文

我正在尝试使用窗口中的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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

世界和平 2025-01-31 01:17:35

您的要求。

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

使用pip冻结> unignts.txt创建/更新unignts.txt文件

Your requirements.txt should be in the format:

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

Use pip freeze > requirements.txt to create/update a requirements.txt file

厌味 2025-01-31 01:17:35

使用 pip docs

以#开头的线被视为评论并忽略。
空格之后是#引起#和剩余的行
被视为评论。

处理线路连续后的评论。

Use proper comments as descripbed in the pip docs:

A line that begins with # is treated as a comment and ignored.
Whitespace followed by a # causes the # and the remainder of the line
to be treated as a comment.

Comments are stripped after line continuations are processed.

李不 2025-01-31 01:17:35

对于任何在此问题上降落的人,您可能会执行pip列表冻结>需求.txt应为pip冻结>要求如上所述。

For anyone that lands on this problem you likely did a pip list freeze > requirements.txt when it should be pip freeze > requirements as suggested above.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文