Options (4)
-U, --upgradebooleanUpgrade all specified packages to the latest version, installing any that are not already present
Example:
pip install {{package1 package2 ...}} {{[-U|--upgrade]}}-r, --requirementbooleanInstall packages listed in a file
Example:
pip install {{[-r|--requirement]}} {{path/to/requirements.txt}}-f, --find-linksbooleanInstall a package from an alternative source (URL or directory) instead of PyPI
Example:
pip install {{[-f|--find-links]}} {{url|path/to/directory}} {{package}}-e, --editablebooleanInstall the local package in the current directory in develop (editable) mode
Example:
pip install {{[-e|--editable]}} .Examples (8)
Install one or more packages
pip install package1 package2 ...Upgrade all specified packages to the latest version, installing any that are not already present
pip install package1 package2 ... [-U|--upgrade]Install a specific version of a package
pip install package==versionInstall packages listed in a file
pip install [-r|--requirement] path/to/requirements.txtInstall a package from a local archive or directory
pip install path/to/file.whl|path/to/file.tar.gz|path/to/directoryInstall a package from a Git repository
pip install git+https://example.com/user/repository.gitInstall a package from an alternative source (URL or directory) instead of PyPI
pip install [-f|--find-links] url|path/to/directory packageInstall the local package in the current directory in develop (editable) mode
pip install [-e|--editable] .made by @shridhargupta | data from tldr-pages