pip导出项目依赖包名称及版本,再安装命令

A导出依赖

pip freeze >requirements.txt

B导入安装依赖

pip install -r requirements.txt

使用下面的命令安装依赖能自动跳过安装错误的依赖包,继续安装!

while read requirements; do pip install $requirements; done < requirements.txt
posted @ 2021-08-24 10:20  呆贝斯  阅读(192)  评论(0编辑  收藏  举报