Python使用requirements.txt安装类库

时间:2021-08-18 15:27:03   收藏:0   阅读:16

1.pip freeze > requirements.txt

  此方法将导出当前环境下,Python安装的所有类库

 

2.pip install pipreqs $ pipreqs /path/to/project

  只导出当前项目下用到的类库

 

使用requirements.txt安装类库

pip  install -r requirements.txt

原文:https://www.cnblogs.com/lywbky/p/15156026.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!