Answers for "uninstall all packages in a venv python"

1

uninstall all packages python

pip list --format=freeze | %{$_.split('==')[0]} | %{If(($_ -eq "pip") -or ($_ -eq "setuptools") -or ($_ -eq "wheel")) {} Else {$_}} | %{pip uninstall $_ -y}
Posted by: Guest on September-28-2021
0

pip uninstall all from env

pip freeze > requirements.txt
# removes one by one
pip uninstall -r requirements.txt
# removes all at once
pip uninstall -r requirements.txt -y
Posted by: Guest on October-12-2021

Code answers related to "uninstall all packages in a venv python"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language