snippetbashTip
pip download — Download Python packages without installing them. More information: <https://pip.pypa.io/en/stable/c
Viewed 0 times
pip downloadcommandpythonwithoutclidownloadinstallingpackages
Problem
How to use the
pip download command: Download Python packages without installing them. More information: <https://pip.pypa.io/en/stable/cli/pip_download/>.Solution
pip download — Download Python packages without installing them. More information: <https://pip.pypa.io/en/stable/cli/pip_download/>.Download a package wheel or source archive to the current directory:
pip download {{package}}Download a specific version of a package:
pip download {{package}}=={{version}}Download a package and its dependencies to a specific directory:
pip download {{package}} {{[-d|--dest]}} {{path/to/directory}}Download a package for a specific platform and Python version:
pip download {{package}} --only-binary :all: --platform {{platform}} --python-version {{version}}Download a package from a specific index URL:
pip download {{package}} {{[-i|--index-url]}} {{url}}Code Snippets
Download a package wheel or source archive to the current directory
pip download {{package}}Download a specific version of a package
pip download {{package}}=={{version}}Download a package and its dependencies to a specific directory
pip download {{package}} {{[-d|--dest]}} {{path/to/directory}}Download a package for a specific platform and Python version
pip download {{package}} --only-binary :all: --platform {{platform}} --python-version {{version}}Download a package from a specific index URL
pip download {{package}} {{[-i|--index-url]}} {{url}}Context
tldr-pages: common/pip download
Revisions (0)
No revisions yet.