1

When I run pip uninstall XXX I got

Uninstalling XXX : whould remove ...
process(y/n)

How to automatically confirm it , something like pip uninstall -f XXX

user13145920
  • 179
  • 1
  • 9
  • 2
    you can use `pip uninstall -y package` see: [https://stackoverflow.com/questions/5189199/bypass-confirmation-prompt-for-pip-uninstall](https://stackoverflow.com/questions/5189199/bypass-confirmation-prompt-for-pip-uninstall) – jodá Feb 24 '21 at 08:11
  • 1
    You could find usage with `pip help uninstall` – atline Feb 24 '21 at 08:12
  • https://stackoverflow.com/search?q=%5Bpip%5D+uninstall – phd Feb 24 '21 at 09:43

1 Answers1

1

You can use the -y or --yes flags. See the official documentation.

Avi Nehama
  • 103
  • 1
  • 8