how to uninstall all packages in virtual environment code example Example: pip3 uninstall all pip3 freeze | xargs pip3 uninstall -y