So I am creating a brand new Flask app from scratch. As all good developers do, my first step was to create a virtual environment.
The first thing I install in the virtual environment is Flask==0.11.1
. Flask installs its following dependencies:
- click==6.6
- itsdangerous==0.24
- Jinja2==2.8
- MarkupSafe==0.23
- Werkzeug==0.11.11
- wheel==0.24.0
Now, I create a requirements.txt to ensure everyone cloning the repository has the same version of the libraries. However, my dilemma is this:
One good thing here is you are using virtualenv, which will make your task very easy.
Activate virtualenv ($source path_to_virtualenv/bin/activate
)
Go to your project root directory
Get all the packages along with dependencies in requirements.txt
pip freeze > requirements.txt
You don't have to worry about anything else apart from making sure next person installs the requirements recursively by following command
pip install -r requirements.txt