User Tools

Site Tools


howto:create_python_environment_for_study_unit_xxx

Create a Python Environment for Study-Unit XXX1234

This is relatively easy (especially if you are using Ubuntu).

  1. Install the latest version of Anaconda.
  2. Download the environment file from VLE for the study-unit you are attending. This is a file with extension .yml and name which matches the study-unit code, e.g. cps3235.yml (assumed name for the rest of the steps). Note that you should have different environment files for your different study-units/assignments/dissertation/projects.
  3. On your machine conda env create -f cps3235.yml.
  4. To activate the environment conda activate cps3235. Note that you will need to do this every time you open a new terminal/you want to use the environment. Alternatively, just append this command to your .bashrc file.
  5. To check that the environment was installed conda env list (environment cps3235 should be listed there, together with the path where it was installed).
  6. To see the packages installed and their versions in the cps3235 environment, conda list.

If something goes wrong and you want to remove the environment issue the command conda remove --name cps3235 --all.

howto/create_python_environment_for_study_unit_xxx.txt · Last modified: 2018/10/16 17:01 by jp