create requirements.txt
- This saves all the packages installed in the environment
pip freeze > requirements.txtRemove all pip packages
pip freeze | xargs pip uninstall -yInstall
pip install -r requirements.txtGet dependency tree
pip install pipdeptree
pipdeptree -flShow installed package version
pip show <package>