【Python】requirements.txt

2023-04-26  本文已影响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

上一篇 下一篇

猜你喜欢

热点阅读