Syntax and Usage
python -m pip uninstall [options] <package> python -m pip uninstall [options] -r <requirements file>
- Specify a specific package by name to uninstall single package
- Path to requirements file which uninstalls all packages listed therein.
Available Options and Command-Line Switches
Used in place of
[options] as seen in the above syntax.
|Suppresses confirmation for uninstall.|
|Path to requirements file which uninstalls all packages listed therein.|
This option can be utilized multiple times.
|If command is executed as root user – Unix Systems|
python -m pip uninstall uncompyle6
uncompyle6 package along with any accompanying packages included in the initial install are uninstalled.
python -m pip uninstall -yes Sphinx
Will uninstall Sphinx without prompting (y/n) confirmation.
python -m pip uninstall -r “D:\Projects\MyProject\requirements.txt”
Uninstalls all packages named in the
requirements.txt file. See video: