uninstall all requirements 1

uninstall all requirements

# linux
pip freeze > unins && pip uninstall -y -r unins && rm unins

Here is what the above code is Doing:
1. pip freeze > unins
– pip freeze will list all the installed packages in your environment
– > unins will redirect the output of pip freeze to a file called unins
2. pip uninstall -y -r unins
– pip uninstall will uninstall all the packages listed in the file unins
– -y will answer yes to all the prompts
– -r will read the file unins
3. rm unins
– rm will remove the file unins

Similar Posts