Skip to main content

“how to uninstall all python packages” Code Answer’s

1 pip3 freeze | xargs pip3 uninstall -y


#Write all modules to a txt file

2 pip freeze > requirements.txt


#Now to remove one by one:

3 pip uninstall -r requirements.txt


#If we want to remove all at once then:

 4 pip uninstall -r requirements.txt -y


how to delete all pips
type "pip freeze" to get list of all installed packages.
Copy all the names into a text file name it pkg.txt
then type the following "pip uninstall -r pkg.txt"
you will be asked to proceed type "y" and enter

Comments