Quick demo of setting up a deep learning Python environment.
Our goals:
torch >= 1.7
and numpy
), computer should figure out exact, mutually compatible versions (torch==1.7.1; numpy==1.19.5
)torch
) from development (black
) dependenciesWe achieve this by:
environment.yml
conda
package manager to create our environment from this filerequirements/prod.in
and requirements/dev.in
pip-tools
to lock in mutually compatbile versions of all requirementsMakefile
so we can simply run make
to update everythingTry it out by running docker run --rm -v
pwd:/var/task -it continuumio/miniconda /bin/bash
, and then in the container:
apt-get install make
cd /var/task
make
This will set up the environment.
Don't forget to activate it by running conda activate conda-piptools-sample-project
!