pip

A tool for installing and managing Python packages

TLDR

Install a package (see pip install for more install examples)

$ pip install [package_name]
copy

Upgrade a package

$ pip install -U [package_name]
copy

Uninstall a package

$ pip uninstall [package_name]
copy

Save installed packages to file

$ pip freeze > [requirements.txt]
copy

Show installed package info

$ pip show [package_name]
copy

SYNOPSIS

pip <command> [options]

DESCRIPTION

pip is the PyPA recommended package manager for Python packages

OPTIONS

-h, --help

Show help.

--isolated

Run pip in an isolated mode, ignoring environment variables and user configuration.

-v, --verbose

Give more output. Option is additive, and can be used up to 3 times.

-V, --version

Show version and exit.

-q, --quiet

Give less output. Option is additive, and can be used up to 3 times (corresponding to WARNING, ERROR, and CRITICAL logging levels).

--log <path>

Path to a verbose appending log.

--no-input

Disable prompting for input.

--proxy <proxy>

Specify a proxy in the form [user:passwd@]proxy.server:port.

--retries <retries>

Maximum number of retries each connection should attempt (default 5 times).

--timeout <sec>

Set the socket timeout (default 15 seconds).

--exists-action <action>

Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.

--trusted-host <hostname>

Mark this host or host:port pair as trusted, even though it does not have valid or any HTTPS.

--cert <path>

Path to alternate CA bundle.

--client-cert <path>

Path to SSL client certificate, a single file containing the private key and the certificate in PEM format.

--cache-dir <dir>

Store the cache data in <dir>.

--no-cache-dir

Disable the cache.

--disable-pip-version-check

Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index.

--no-color

Suppress colored output.

--no-python-version-warning

Silence deprecation warnings for upcoming unsupported Pythons.

--use-feature <feature>

Enable new functionality, that may be backward incompatible.

--use-deprecated <feature>

Enable deprecated functionality, that will be removed in the future.

COMMANDS

pip-install(1)

Install packages.

pip-download(1)

Download packages.

pip-uninstall(1)

Uninstall packages.

pip-freeze(1)

Output installed packages in requirements format.

pip-list(1)

List installed packages.

pip-show(1)

Show information about installed packages.

pip-check(1)

Verify installed packages have compatible dependencies.

pip-search(1)

Search PyPI for packages.

pip-wheel(1)

Build wheels from your requirements.

pip-hash(1)

Compute hashes of package archives.

pip-help(1)

Show help for pip commands.

IMPORTANT:

Did this article help?

We are currently doing research to improve pip's documentation and would love your feedback. Please email us and let us know:

  1. What problem were you trying to solve when you came to this page?

  2. What content was useful?

  3. What content was not useful?

COPYRIGHT

2008-2021, PyPA

AUTHOR

pip developers

Copied to clipboard
3commas