什么是"-r "在 pip install -r requirements.txt 中做 [英] What does " -r " do in pip install -r requirements.txt

查看:25
本文介绍了什么是"-r "在 pip install -r requirements.txt 中做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查找了如何使用 pip 从需求文档中安装多个包.答案主要是:

I looked up how to install multiple packages from a requirements document using pip. The answers were mostly:

 pip install -r requirements.txt

-r 有什么作用?我找不到这个问题的答案,而且当我运行 pip help 时它没有列出.

What does the -r do though? I can't find an answer for this and it isn't listed when I run pip help.

推荐答案

查看 pip install --help 而不是 pip --help:

-r, --requirement 从给定的需求安装文件.此选项可多次使用次.

-r, --requirement Install from the given requirements file. This option can be used multiple times.

另请参阅这些文档段落:

Also see these documentation paragraphs:

这篇关于什么是"-r "在 pip install -r requirements.txt 中做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆