将pip安装的包导出到文件列表
pip freeze > requirements.txt # 生成requirements.txt
pip批量安装包及通过列表文件安装
pip install -r requirements.txt # 从requirements.txt安装依赖
下载pip包-通过列表文件批量下载pip包
下载单个包:pip download numpy
批量下载:pip download -r requirements.txt
离线环境通过pip安装包
离线安装单个指定包:pip install --no-index --find-links=/packs/ pandas
离线批量安装包:pip install --no-index --find-links=/packs/ -r requirements.txt
Python pip安装包导入导出、下载包和离线安装. (n.d.). Retrieved August 31, 2020, from https://blog.csdn.net/qq_38567546/article/details/105075018