remove all packges from pip, working with virtualenv

use command below if you want to clean the pip installed packages.

pip freeze | xargs pip uninstall -y

install ‘virtualenv’ from python pip tool.

ref: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/

pip install virtuanenv

create a new virtual environment folder.

virtualenv {env_name}

virtualenv [–version] [–with-traceback] [-v | -q] [–read-only-app-data] [–app-data APP_DATA] [–reset-app-data] [–upgrade-embed-wheels] [–discovery {builtin}] [-p py] [–try-first-with py_exe]