美文网首页
【Python】requirements.txt

【Python】requirements.txt

作者: 盐果儿 | 来源:发表于2023-04-26 16:41 被阅读0次

A requirements.txt file is a common way to specify the dependencies for a Python project. It lists the names of the required Python packages, along with their version numbers, that need to be installed in order for the project to run correctly.

Procedure:

1. Create a requirements.txt file in the root directory of your project.

2. In the requirements.txt file, list the names of the required Python packages, one per line. Optionally, you can also specify the version number or version range of each package using the syntaxpackage-name==versionorpackage-name>=version.

requests==2.26.0

pandas>=1.3.0

numpy==1.21.1

相关文章

网友评论

      本文标题:【Python】requirements.txt

      本文链接:https://www.haomeiwen.com/subject/dvgaddtx.html