PIP-INSTALL(1)
π
PIP-INSTALL(1) β the pip install glow-up
okay so bestie, welcome to the pip-install page from the pip manual β this is literally the description of the pip install command and it's about to be your new fave π
β¨ NAME β¨
pip-install β description of pip install command π
π¦ DESCRIPTION π¦
okay so the whole vibe of this command is: it installs packages. from where, you ask? bestie, from so many places:
- PyPI (and other indexes) using requirement specifiers π«
- VCS project urls π§
- local project directories πΈ
- local or remote source archives π
and ngl, pip also supports installing from "requirements files", which is the iconic way to specify a whole entire environment to be installed in one go. main character energy fr fr π
π USAGE π
here's the group chat of ways you can call it β copy these exactly, no cap:
python -m pip install [options] <requirement specifier> [package-index-options] ...
python -m pip install [options] -r <requirements file> [package-index-options] ...
python -m pip install [options] [-e] <vcs project url> ...
python -m pip install [options] [-e] <local project path> ...
python -m pip install [options] <archive url/path> ...
π OPTIONS π
grab a snack, there's a lot, and every single one is here because we don't skip π
-r,--requirement <file>β install from the given requirements file. you can use this option multiple times, slay β¨-c,--constraint <file>β constrain versions using the given constraints file. also usable multiple times π--no-depsβ don't install package dependencies. just the one, alone, independent π¦--preβ include pre-release and development versions. by default,piponly finds stable versions, so this is your "i want the new-new" button π₯-e,--editable <path/url>β install a project in editable mode (i.e. setuptools"develop mode") from a local project path or a VCS url. live-editing hours π--dry-runβ don't actually install anything, just print what would be. can be used in combination with--ignore-installedto 'resolve' the requirements. window shopping, iconic π-t,--target <dir>β install packages into <dir>. by default this will not replace existing files/folders in <dir>. use--upgradeto replace existing packages in <dir> with new versions β--platform <platform>β only use wheels compatible with <platform>. defaults to the platform of the running system. use this option multiple times to specify multiple platforms supported by the target interpreter πΈ--python-version <python_version>β the Python interpreter version to use for wheel and"Requires-Python"compatibility checks. defaults to a version derived from the running interpreter. the version can be specified using up to three dot-separated integers (e.g."3"for 3.0.0,"3.7"for 3.7.0, or"3.7.3"). a major-minor version can also be given as a string without dots (e.g."37"for 3.7.0) π--implementation <implementation>β only use wheels compatible with Python implementation <implementation>, e.g.'pp','jy','cp', or'ip'. if not specified, then the current interpreter implementation is used. use'py'to force implementation-agnostic wheels π§--abi <abi>β only use wheels compatible with Python abi <abi>, e.g.'pypy_41'. if not specified, then the current interpreter abi tag is used. use this option multiple times to specify multiple abis supported by the target interpreter. generally you will need to specify--implementation,--platform, and--python-versionwhen using this option π«--userβ install to the Python user install directory for your platform. typically~/.local/, or%APPDATA%Pythonon Windows. (see the Python documentation forsite.USER_BASEfor full details.) π--root <dir>β install everything relative to this alternate root directory π³--prefix <dir>β installation prefix wherelib,binand other top-level folders are placed. note that the resulting installation may contain scripts and other resources which reference the Python interpreter ofpip, and not that of--prefix. see also the--pythonoption if the intention is to install packages into another (possibly pip-free) environment π--src <dir>β directory to check out editable projects into. the default in a virtualenv is"<venv path>/src". the default for global installs is"<current dir>/src"π-U,--upgradeβ upgrade all specified packages to the newest available version. the handling of dependencies depends on the upgrade-strategy used β¬οΈ--upgrade-strategy <upgrade_strategy>β determines how dependency upgrading should be handled [default:only-if-needed]."eager"β dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s)."only-if-needed"β are upgraded only when they do not satisfy the requirements of the upgraded package(s) π€--force-reinstallβ reinstall all packages even if they are already up-to-date. no chill, just reinstall π-I,--ignore-installedβ ignore the installed packages, overwriting them.
β οΈ bestie this can break your system if the existing package is of a different version or was installed with a different package manager! like, fr fr, be careful π
--ignore-requires-pythonβ ignore theRequires-Pythoninformation π--no-build-isolationβ disable isolation when building a modern source distribution. build dependencies specified by PEP 518 must be already installed if this option is used π οΈ--use-pep517β use PEP 517 for building source distributions (use--no-use-pep517to force legacy behaviour) π§--check-build-dependenciesβ check the build dependencies when PEP517 is used β--break-system-packagesβ allowpipto modify anEXTERNALLY-MANAGEDPython installation. living dangerously, i see π¨-C,--config-settings <settings>β configuration settings to be passed to the PEP 517 build backend. settings take the formKEY=VALUE. use multiple--config-settingsoptions to pass multiple keys to the backend ποΈ--global-option <options>β extra global options to be supplied to thesetup.pycall before theinstallorbdist_wheelcommand π--compileβ compile Python source files to bytecode β‘--no-compileβ do not compile Python source files to bytecode π«--no-warn-script-locationβ do not warn when installing scripts outsidePATHπ€«--no-warn-conflictsβ do not warn about broken dependencies π--no-binary <format_control>β do not use binary packages. can be supplied multiple times, and each time adds to the existing value. accepts either":all:"to disable all binary packages,":none:"to empty the set (notice the colons), or one or more package names with commas between them (no colons). note that some packages are tricky to compile and may fail to install when this option is used on them π¬--only-binary <format_control>β do not use source packages. can be supplied multiple times, and each time adds to the existing value. accepts either":all:"to disable all source packages,":none:"to empty the set, or one or more package names with commas between them. packages without binary distributions will fail to install when this option is used on them π--prefer-binaryβ prefer older binary packages over newer source packages π΅--require-hashesβ require a hash to check each requirement against, for repeatable installs. this option is implied when any package in a requirements file has a--hashoption π--progress-bar <progress_bar>β specify whether the progress bar should be used [on,off] (default:on) π--root-user-action <root_user_action>β action ifpipis run as a root user. by default, a warning message is shown π--report <file>β generate a JSON file describing whatpipdid to install the provided requirements. can be used in combination with--dry-runand--ignore-installedto 'resolve' the requirements. when-is used as file name it writes to stdout. when writing to stdout, please combine with the--quietoption to avoid mixingpiplogging output with JSON output π--no-cleanβ don't clean up build directories π§Ή
π«Ά AUTHOR π«Ά
pip developers β love them, they did that π
π COPYRIGHT π
The pip developers π
aaaand that's the whole page bestie! π this one's from pip 23.2, dated Jun 25, 2025 β go install something iconic, ily, bye ππ¦β¨
π¦ where this page comes from
- centos-stream 9: python3.12-pip 23.2.1-5.el9 Β· MIT and Python and ASL 2.0 and BSD and ISC and LGPLv2 and MPLv2.0 and (ASL 2.0 or BSD)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms