Answers for "python deinstall packages"

6

how to uninstall all python packages

#Write all modules to a txt file
pip freeze > requirements.txt

#Now to remove one by one:
pip uninstall -r requirements.txt

#If we want to remove all at once then:
pip uninstall -r requirements.txt -y
Posted by: Guest on October-26-2020
2

how to uinstall a package in python

# INSTALLING A PACKAGE 
pip install <package>

# UINSTALLING A PACKAGE 
pip uninstall <package>

# UPDATING A PACKAGE 
pip install --upgrade --user <package>
Posted by: Guest on July-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language