美文网首页
Python使用pip install -r 一次安装多个模块

Python使用pip install -r 一次安装多个模块

作者: 张云飞Vir | 来源:发表于2020-11-23 08:55 被阅读0次

1、背景

Python 支持使用pip install -r 一次安装多个模块。

2、使用方法

使用时,只需要在命令中追加参数r以及文件所在的目录就好了,一般格式为:

命令行格式:
python -m pip install -r <file>

示例:
python -m pip install -r requirements.txt

上面提到了 “requirements.txt”,requirements 文件最简单的格式如下:

altgraph
future
macholib
pefile
pyinstaller
pywin32-ctypes

END

相关文章

网友评论

      本文标题:Python使用pip install -r 一次安装多个模块

      本文链接:https://www.haomeiwen.com/subject/uurmiktx.html