# Version Pinning

*noun*

say it: **“VUR-zhun PIN-ing”** **/ˈvɜrʒən ˈpɪnɪŋ/**

Writing down the exact version of each package a project needs, such as pytest==9.2.0, so every computer installs the same one.

## What is **version pinning**?

**Version pinning** means writing the exact version of each package in `requirements.txt`, with `==`, so every computer
that installs from it gets the same versions and the code behaves the same.

```text
# requirements.txt
pytest==9.2.0
requests==2.32.5
```

## In a sentence

- “**Version pinning** kept the class's tests passing after a new release of the library came out.”
- “Thanks to **version pinning**, the grader's computer installed the same pytest as hers.”

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/version-pinning
