pip freeze vs pip list code example Example: pip freeze $ env1/bin/pip freeze > requirements.txt $ env2/bin/pip install -r requirements.txt