Setting up a new environment

Before we do anything else we'll create a new virtual environment, using venv. This will make sure our package configuration is kept nicely isolated from any other projects we're working on.

  1. python3 -m venv env
  2. source env/bin/activate

Now that we're inside a virtual environment, we can install our package requirements.

  1. pip install django
  2. pip install djangorestframework
  3. pip install pygments # We'll be using this for the code highlighting

Note: To exit the virtual environment at any time, just type deactivate. For more information see the venv documentation.