pip Cheat Sheet/Use an extra index

Search an additional package index.

Section: Indexes and Private Repositories

Use an extra index

bash
bash
python -m pip install --extra-index-url https://example.com/simple internal-package
Explanation

Common when mixing public PyPI packages with private packages.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Indexes and Private Repositories
Install from a custom index
Use a specific package index URL.
OpenIn sheetbashsame section
Mark host as trusted
Bypass HTTPS verification restrictions for a host.
OpenIn sheetbashsame section
Install from local wheels only
Disable indexes and use local artifacts.
OpenIn sheetbashsame section
Allow pre-release versions
Permit alpha, beta, and release candidate versions.
OpenIn sheetbashsame section
Install a package
Install the latest version of a package.
OpenIn sheetbash1 tag match
Install a specific version
Pin installation to an exact version.
OpenIn sheetbash1 tag match