【问题标题】:What is the use of -r in the pip install command? [duplicate]pip install 命令中的 -r 有什么用? [复制]
【发布时间】:2021-10-03 23:10:09
【问题描述】:

这个安装命令中的-r有什么用?

pip install -r requirments.txt

【问题讨论】:

    标签: python python-3.x django django-rest-framework


    【解决方案1】:

    如果我们查看manpage of pip [manpages],我们会看到:

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

    这意味着我们指定了一个包含需求的文件。可以多次使用,例如:

    pip install -r requirements<sub>1</sub>.txt -r requirements<sub>2</sub>.txt

    【讨论】:

      猜你喜欢
      • 2022-01-21
      • 2016-10-30
      • 2020-11-22
      • 2021-09-13
      • 1970-01-01
      • 2021-03-25
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多