Prior to developing, install dependencies for the virtual environment and activate the environment. General instructions for working with virtualenv can be found in create_envs.txt at the root of the project architecture
To install any dependencies follow the instructions below:
-
construct a blank virtual environment with: virtualenv ./environments/pi_env
-
activate the virtual environment with: source ./environments/pi_env/bin/activate
-
install dependencies with: pip3 install -r requirements.txt --upgrade where the requirements file can be found within the environments folder.
Be sure to update the requirements file after installing any libraries. To update the file follow instructions below:
-
activate the virtual environment with: source ./environments/pi_env/bin/activate
-
save project dependencies: pip3 freeze --local > ./environments/requirements.txt