Kurbitz / PDCMAD

Creative Commons Attribution 4.0 International
3 stars 0 forks source link

Set up common Python dev environment #24

Closed Kurbitz closed 11 months ago

Kurbitz commented 12 months ago

There's a very popular way of managing a python environment using venv [1]. I've had success using it in the past. Makes sharing the same dependencies very easy. But maybe we should look into using Docker somehow? I think defining dependencies will be important either way. As far as I'm aware, this is done using a requirements.txt file [2].

  1. https://virtualenv.pypa.io/en/latest/
  2. https://learnpython.com/blog/python-requirements-file/
Meeptard commented 11 months ago

Python has a built-in virtual environment module (venv) that will be used to create the virtual environment

Meeptard commented 11 months ago

Pytorch version depends on gpu which means we have to use the CPU based version if we want a reproducable environment.

Meeptard commented 11 months ago

Realized that setting up an environment that can be used by everyone is kinda stupid and will therefore just create the requirements file and have a first setup guide in the readme

Meeptard commented 11 months ago

Last thing to do is creating the readme

Kurbitz commented 11 months ago

Closed by #44