PIP-INSTALL(1)
π pip-install π
okay bestie, welcome to PIP-INSTALL(1) β the pip manual page for the pip install command. grab a strawberry π and letβs get your packages installed, no cap.
πΈ NAME πΈ
pip-install β description of pip install command
β¨ DESCRIPTION β¨
Install packages from:
- PyPI (and other indexes) using requirement specifiers.
- VCS project urls.
- Local project directories.
- Local or remote source archives.
pip also supports installing from "requirements files", which provide an easy way to specify a whole environment to be installed. itβs giving βone file, whole vibeβ π
π οΈ USAGE π οΈ
the sacred invocations, preserved exactly:
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 π
bestie, hereβs the whole flag lineup β every single one, no skips, periodt:
-r,--requirement <file>β install from the given requirements file. this option can be used multiple times. β¨-c,--constraint <file>β constrain versions using the given constraints file. this option can be used multiple times. π--no-depsβ donβt install package dependencies. simple, clean, a little chaotic maybe.--preβ include pre-release and development versions. by default,piponly finds stable versions. π¦-e,--editable <path/url>β install a project in editable mode (i.e. setuptools"develop mode") from a local project path or a VCS url. main character dev energy.--dry-runβ donβt actually install anything, just print what would be. can be used in combination with--ignore-installedto'resolve'the requirements. lowkey a vision board for your install.-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"for3.0.0,"3.7"for3.7.0, or"3.7.3"). a major-minor version can also be given as a string without dots (e.g."37"for3.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. π--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. not me forcing the reinstall π-I,--ignore-installedβ ignore the installed packages, overwriting them. this can break your system if the existing package is of a different version or was installed with a different package manager! π--ignore-requires-pythonβ ignore theRequires-Pythoninformation.--no-build-isolationβ disable isolation when building a modern source distribution. build dependencies specified byPEP 518must be already installed if this option is used. π¦--use-pep517β usePEP 517for building source distributions (use--no-use-pep517to force legacy behaviour).--check-build-dependenciesβ check the build dependencies whenPEP517is used.--config-settings <settings>β configuration settings to be passed to thePEP 517build backend. settings take the formKEY=VALUE. use multiple--config-settingsoptions to pass multiple keys to the backend. β¨--install-option <options>β extra arguments to be supplied to thesetup.py installcommand (use like--install-option="--install-scripts=<sys.prefix>/local/bin"). use multiple--install-optionoptions to pass multiple options tosetup.py install. if you are using an option with a directory path, be sure to use absolute path. πΈ--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 tostdout. when writing tostdout, please combine with the--quietoption to avoid mixingpiplogging output with JSON output. π--no-cleanβ donβt clean up build directories.
π AUTHOR π
pip developers β thatβs the author, bestie. iconic. β¨
π COPYRIGHT π
The pip developers β copyright, preserved exactly. no notes. π
this cutie came from pip version 22.3, dated Jun 25, 2025 β xoxo, your Unix bestie π
π«Ά
π¦ where this page comes from
- centos-stream 9: python3.11-pip 22.3.1-6.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