pip Verified current stable Not installed? Package Management

Pip / Download Package From Specific Index Url

Download Package From Specific Index Url

Use pip to download a specific package from a designated index URL for Python packages.

$
Terminal
pip download <package> -i <url>

When To Use

Use this command to download a package from a custom Python package index.

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
pip download <package> -i <url>

Terminal Output

Expected runtime feedback

Simulated preview
>
Output
Collecting package_name
  Downloading package_name-1.0.0-py3-none-any.whl
Successfully downloaded package_name

Power User Variants

Optimized versions

pip download requests -i https://my.custom.index/simple

Download the 'requests' package from a custom index.

pip download numpy --index-url https://my.custom.index/simple

Download the 'numpy' package using a specific index URL.

Troubleshooting

Common pitfalls

Could not find a version that satisfies the requirement

Solution: Check the package name and index URL for correctness.

No matching distribution found for package_name

Solution: Ensure the package exists in the specified index.

Command Breakdown

What each part is doing

pip
Base Command
The executable that performs this operation. Here it runs Pip before the shell applies any redirect operators.
<package>
package
The value supplied for package.
-i
i| index url
The URL supplied to this command.
<url>
url
The URL supplied to this command.
-i
Command Option
Tool-specific option used by this command invocation.

How To Run

Execution path

  1. Step 1

    Replace {{package}} with the desired package name.

  2. Step 2

    Specify the index URL using -i or --index-url.

  3. Step 3

    Run the command to download the package.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.