首页 > 编程语言 > 详细

Python使用requirements.txt安装类库

时间:2018-05-21 13:35:10      阅读:189      评论:0      收藏:0      [点我收藏+]
requirements.txt文件生成

1.pip freeze > requirements.txt

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

 

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

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

 

 

使用requirements.txt安装类库

pip  install -r requirements.txt

Python使用requirements.txt安装类库

原文:https://www.cnblogs.com/noube/p/9066392.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!