Install a package

$ pip install flask

Save installed packages list to file

$ pip freeze > requirements.txt

Install packages from requirements list

$ pip install -r requirements.txt