LinuxCommandLibrary

pip-install

TLDR

Install package

$ pip install [package]
copy
Install specific version
$ pip install [package]==[version]
copy
Install from requirements file
$ pip install -r requirements.txt
copy
Install in editable mode
$ pip install -e [path]
copy
Upgrade package
$ pip install --upgrade [package]
copy
Install to user directory
$ pip install --user [package]
copy

SYNOPSIS

pip install [options] packages...

DESCRIPTION

pip install installs Python packages from PyPI or other sources. Supports version specifiers, requirements files, local paths, Git URLs, and wheel files. The primary method for adding Python dependencies.

PARAMETERS

-r, --requirement file

Install from requirements file.
-e, --editable path
Install in editable/develop mode.
-U, --upgrade
Upgrade package to newest version.
--user
Install to user site-packages.
--no-deps
Don't install dependencies.
--pre
Include pre-release versions.
-i, --index-url url
Use custom package index.
--extra-index-url url
Additional package index.
-t, --target dir
Install to specific directory.
--force-reinstall
Reinstall even if up-to-date.

SEE ALSO

Copied to clipboard