pip的-t标志是什么?

时间:2018-01-29 14:30:14

标签: python pip

我被建议使用pip install module-name -t /path/to/project-dir,但我不明白t标志是什么。有人能帮助我吗?

2 个答案:

答案 0 :(得分:5)

来自manual

-t, --target <dir>
     Install packages into <dir>.
     By default this will not replace existing files/folders in <dir>.
     Use --upgrade to replace existing packages in <dir> with new versions.

答案 1 :(得分:0)

在撰写本文时,OP下垂了4个大拇指,因为问题的措词是细粒度的,并不表示真正的问题,解释如下:

“为什么--help选项不能显示pip命令支持的所有可能标志及其用法?”

答案:   user:plaes提供的手册页链接中涵盖了更多内容,例如要求的“ -r”。

相关问题