requirements作用描述:
很多 Python 项目中经常会包含一个 requirements.txt 文件,里面内容是项目的依赖包及其对应版本号的信息列表,
即项目依赖关系清单,其作用是用来重新构建项目所需要的运行环境依赖,
比如你从 GitHub 上 clone 了一个 Python 项目,
通常你会先找到 requirements.txt 文件,然后运行命令 pip install -r requirements.txt 来安装该项目所依赖的包。
同样,你也可以在你的项目目录下运行命令 pip freeze > requirements.txt 来生成 requirements.txt 文件,以便他人重新安装项目所依赖的包。

文件生成
pip freeze > requirements.txt

包安装
pip install -r requirements.txt

最新文章

  1. [WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform
  2. 2015弱校联盟(1) - B. Carries
  3. 每天一个linux命令(28):diff 命令
  4. python TypeError: 'str' object does not support item assignment”
  5. 一种透明效果的view
  6. esriSRProjCS3Type Constants
  7. 实际举例C#引用类型和值类型的区别<网摘>
  8. SQL你必须知道的-函数及类型转换
  9. 对于eclipse新建maven工程需要注意的地方。
  10. iOS: TableView如何刷新指定的cell 或section
  11. printf交替使用
  12. OpenGL ES着色器语言之变量和数据类型(二)(官方文档第四章)
  13. Gym 100518E Embedding Caterpillars
  14. Codeforces 810C Do you want a date?(数学,前缀和)
  15. phpstorm中使用xdebug配置cli模式的调试
  16. JS学习笔记Day14
  17. Java框架spring 学习笔记(十一):aop相关概念
  18. intel xeon家族介绍
  19. 《DSP using MATLAB》Problem 6.10
  20. Swift重写UIButton的图片和标题的位置

热门文章

  1. 全局安装npm包报错没有权限
  2. ES6高级技巧(五)
  3. Linux(centOS6.5)安装RabbitMQ
  4. POSIX 正则表达式 BRE与ERE的差异
  5. python爬取豆瓣电影首页超链接
  6. FormData的Ajax提交注意事项
  7. html 图片滚动代码
  8. 兼容 .NET Core3.0, Natasha 框架实现 隔离域与热编译操作
  9. 深入解析 Go 中 Slice 底层实现
  10. 关于在linux上部署scrapy的爬虫