# requirements.txt

*noun*

say it: **“rih-KWYR-ments dot TEKST”** **/rɪˈkwaɪərmənts dɑt ˈtɛkst/**

A text file that lists the packages a Python project needs, often with exact versions, so anyone can install them all with pip install -r requirements.txt.

## What is a `requirements.txt` file?

A `requirements.txt` file lists the packages a project needs, so anyone can install them all with one command.

```text
# requirements.txt
requests==2.32.3
flask==3.0.3

# install everything:
# pip install -r requirements.txt
```

## In a sentence

- “The new teammate ran pip install -r **requirements.txt** and had every package in a minute.”
- “He added requests==2.32.3 to **requirements.txt** so everyone gets the same version.”

Level: Journeyman · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/requirements-txt
