pip

The Python package installer

pip Overview

pip is the package installer for Python. It allows you to install and manage additional packages that are not part of the Python standard library. pip is included by default with Python installations since Python 3.4.

Developer

Python Packaging Authority (PyPA)

Initial release

2008

Written in

Python

License

MIT License

Key Features

Installation & Setup

Installation Steps:

  1. pip comes pre-installed with Python 3.4+
  2. To upgrade pip: python -m pip install --upgrade pip
  3. Verify installation: pip --version
  4. Configure pip if needed (index URLs, proxies, etc.)
  5. Consider using virtual environments for project isolation

Common Commands:

pip install

Install packages

pip freeze

Output installed packages

pip list

List installed packages

pip show

Show information about a package

Productivity Tips

Requirements Files

Use requirements.txt files to document and reproduce environments.

Virtual Environments

Always use virtual environments to isolate project dependencies.

Index URLs

Use --index-url to specify alternative package indexes.

pip cache

Leverage pip's cache to speed up repeated installations.

Learning Resources