Setting up virtual environments

18 Jan 2018

As we heard last week, 96 people expressed interest in attending our workshop. Anyhow, it is hard to predict how many participants there will be, since they are allowed to decide on the spot. As a consequence, we do not know in advance who exactly is coming.

I anticipate slow-downs throughout the workshop due to the software issues. To make sure that we are all on the same page, we will prepare a .yaml file to distribute. Never the less, here are the instructions of how to create the environment yourself.

Virtual environments:

Virtual environments allow to separate libraries and different versions of Python, used by different projects and avoid conflicts.

The following instructions are here for your information. There is no need to go through all the steps yourself, rather use the provided amld.yml file, as shown in the last command.

From now on either follow the instructions below, or go to the last instruction and use the ditributed amld.yml file.

conda create --name amld python=3

conda env list

source activate amld

activate amld

conda install numpy matplotlib pandas jupyter notebook

conda list

jupyter notebook

conda env export > amld.yml

conda env create -f amld.yml

conda env remove -n env_name

Documentation:

https://conda.io/docs/user-guide/tasks/manage-environments.html

comments powered by Disqus