This is relatively easy (especially if you are using Ubuntu).
.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.conda env create -f cps3235.yml.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.conda env list (environment cps3235 should be listed there, together with the path where it was installed).cps3235 environment, conda list.
If something goes wrong and you want to remove the environment issue the command conda remove --name cps3235 --all.