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