howto:create_python_environment_for_study_unit_xxx
This is an old revision of the document!
Create a Python Environment for Study Unit XXX1234
This is realtively easy (if you are using Ubuntu).
- Install the latest version of Anaconda.
- 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. - On your machine
conda env create -f cps3235.yml
. - 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. - To check that the environment was installed
conda env list
(environmentcps3235
should be listed there, together with the path where it was installed). - 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.1539089005.txt.gz · Last modified: 2018/10/09 12:43 by jp