# pip

> The main tool for adding Python packages to a project. It gets them from PyPI.

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** Python package installer, pip install

## Think of it like

Think of it like a van that brings parts. You name the part, and it drops it at your door.

## Definition

pip is the standard tool for installing Python packages. It downloads them from PyPI, the Python Package Index, where the community shares its code. You type pip install with a package name, and it fetches that package and what it needs. It comes with Python. Projects often list their packages in a file called requirements.txt.

## Example

Emma needs to call a web API from Python. She runs pip install requests, and five packages arrive in a few seconds.

## Example code

```console
$ pip install requests
Successfully installed certifi-2026.10.23 charset_normalizer-3.5.2 idna-3.20 requests-2.34.2 urllib3-2.8.0
```

Asking for one package brought four more that it needs.

## Why it matters

Most Python projects, past a single script, use pip to get their packages.

## Common mistake

Putting all packages into the Python your computer came with. Make a separate space per project, so versions do not clash.

## Three principles

- **Comes with Python.** No separate install needed.
- **Reads from PyPI.** The shared shelf of Python packages.
- **One per project.** Keep each project's packages apart.

## Related terms

- [Package Manager](https://learn.benibix.com/term/development/package-manager)
- [npm](https://learn.benibix.com/term/development/npm)
- [Python](https://learn.benibix.com/term/development/python)
- [Dependency](https://learn.benibix.com/term/development/dependency)
- [Virtual Environment](https://learn.benibix.com/term/development/virtual-environment)
- [uv](https://learn.benibix.com/term/development/uv)

## Told apart from

- [pip vs uv](https://learn.benibix.com/compare/pip-vs-uv): People think uv is a new place to get Python packages, and it is not. Both uv and pip fetch from PyPI. pip only installs packages. uv also makes the virtual environment, keeps a lockfile and can even install Python. It is written in Rust, so it is much faster too.

## Taught in

- [Package Managers, npm and pip](https://learn.benibix.com/learn/development-tools/package-managers-npm-and-pip): Coding Tools, 8/13

---

Source: https://learn.benibix.com/term/development/pip
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
