pip uninstall package anaconda code example

Example 1: pip remove

# python2
pip uninstall package_name
# python3
pip3 uninstall package_name

Example 2: pip remove package

pip uninstall <package_name>

Example 3: uninstall all pip packages anaconda

C:\> py -m pip uninstall simplejson
Uninstalling simplejson:
   /home/me/env/lib/python3.9/site-packages/simplejson
   /home/me/env/lib/python3.9/site-packages/simplejson-2.2.1-py3.9.egg-info
Proceed (y/n)? y
   Successfully uninstalled simplejson

Example 4: uninstall all pip packages anaconda

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

Tags:

Misc Example