pip uninstall
Usage
Unix/macOS
python -m pip uninstall [options] <package> ...python -m pip uninstall [options] -r <requirements file> ...
Windows
py -m pip uninstall [options] <package> ...py -m pip uninstall [options] -r <requirements file> ...
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.
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.
Examples
Uninstall a package.
Unix/macOS
$ python -m pip uninstall simplejsonUninstalling simplejson:/home/me/env/lib/python2.7/site-packages/simplejson/home/me/env/lib/python2.7/site-packages/simplejson-2.2.1-py2.7.egg-infoProceed (y/n)? ySuccessfully uninstalled simplejson
Windows
C:\> py -m pip uninstall simplejsonUninstalling simplejson:/home/me/env/lib/python2.7/site-packages/simplejson/home/me/env/lib/python2.7/site-packages/simplejson-2.2.1-py2.7.egg-infoProceed (y/n)? ySuccessfully uninstalled simplejson
Important
Did this article help?
We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_uninstall.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know:
What problem were you trying to solve when you came to this page?
What content was useful?
What content was not useful?