User Tools

Site Tools


howto:create_python_environment_for_study_unit_xxx

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
howto:create_python_environment_for_study_unit_xxx [2018/10/09 12:25] – created jphowto:create_python_environment_for_study_unit_xxx [2018/10/16 17:01] (current) jp
Line 1: Line 1:
-====== Create a Python Environment for Study Unit XXX1234 ======+====== Create a Python Environment for Study-Unit XXX1234 ======
  
-This is realtively easy (if you are using Ubuntu).+This is relatively easy (especially if you are using Ubuntu).
  
 +    - Install the latest version of [[https://www.anaconda.com/download/|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'' (environment ''cps3235'' 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.1539087941.txt.gz · Last modified: 2018/10/09 12:25 by jp