LinuxCommandLibrary

pip-uninstall

Uninstall Python packages.

TLDR

Uninstall a package

$ pip uninstall [package_name]
copy


Uninstall packages listed in a specific file
$ pip uninstall --requirement [path/to/requirements.txt]
copy


Uninstall package without asking for confirmation
$ pip uninstall --yes [package_name]
copy

DESCRIPTION

Uninstall packages.

pip is able to uninstall most installed packages. Known exceptions are:

  • Pure distutils packages installed with python setup.py install, which leave behind no metadata to determine what files were installed.

  • Script wrappers installed by python setup.py develop.

USAGE

python -m pip uninstall [options] <package> ...
python -m pip uninstall [options] -r <requirements file> ...

OPTIONS

-r, --requirement <file>

Uninstall all the packages listed in the given requirements file. This option can be used multiple times.

-y, --yes

Don't ask for confirmation of uninstall deletions.

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-2022, PyPA

AUTHOR

pip developers

Copied to clipboard