← 返回命令列表

Linux command

pip-download 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Download package

pip download [package]

Download to specific directory

pip download -d [directory] [package]

Download specific version

pip download [package]==[version]

Download for specific platform

pip download --platform [linux_x86_64] --only-binary=:all: [package]

Download from requirements file

pip download -r requirements.txt

说明

pip download downloads packages without installing them. Downloads wheels or source distributions to a specified directory. Useful for offline installation or creating local package mirrors.

参数

-d, --dest _dir_
Download directory.
-r, --requirement _file_
Download from requirements file.
--no-deps
Don't download dependencies.
--only-binary _format_
Only download binary packages.
--platform _platform_
Download for specific platform.
--python-version _version_
Download for specific Python version.

FAQ

What is the pip-download command used for?

pip download downloads packages without installing them. Downloads wheels or source distributions to a specified directory. Useful for offline installation or creating local package mirrors.

How do I run a basic pip-download example?

Run `pip download [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --dest _dir_ do in pip-download?

Download directory.