Just prepare those packages as list:
pip uninstall <list of requirement> -y
e.g.:
pip uninstall termcolor, imgviz, matplotlib, PyYAML, qtpy, Pillow, colorama, PyQt5, numpy -y
(Some version of pip require to remove commas, s. below)
pip uninstall termcolor imgviz matplotlib -y
For example: Uninstall package with its dependence with pip in three steps:
- show dependence list
- remove the package
- remove list of its dependence (copy it from 1.)
For detail:
1. pip show <package>
e.g.:
pip show labelme
...
Requires: termcolor, imgviz, matplotlib, PyYAML, qtpy, Pillow, colorama, PyQt5, numpy
...
2. pip uninstall <package>
e.g.
pip uninstall labelme
3. pip uninstall <list of requirement> -y
e.g.:
pip uninstall termcolor, imgviz, matplotlib, PyYAML, qtpy, Pillow, colorama, PyQt5, numpy -y