This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
guide:python [2022/06/13 09:24] wikiadmin |
guide:python [2022/06/13 11:58] (current) wikiadmin |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| Use this command to get a full list: | Use this command to get a full list: | ||
| module avail chpc/python | module avail chpc/python | ||
| + | |||
| + | Note that the modules including anaconda are more recent and thus recommended over the plain Python modules, i.e., use one of: | ||
| + | |||
| + | chpc/ | ||
| + | chpc/ | ||
| + | chpc/ | ||
| + | chpc/ | ||
| + | chpc/ | ||
| + | |||
| + | > To check the version of Python provided by each, load the module (after purging any already loaded modules) and then run '' | ||
| + | |||
| + | login1:~$ module purge | ||
| + | login1:~$ module load chpc/ | ||
| + | login1:~$ python3 --version | ||
| + | Python 3.7.4 | ||
| + | login1:~$ module purge | ||
| + | login1:~$ module load chpc/ | ||
| + | login1:~$ python3 --version | ||
| + | Python 3.9.7 | ||
| + | login1: | ||
| + | |||
| + | |||
| All python modules should have mpi4py, numpy and scipy installed; however if matplotlib is required, please use anaconda (which also has the biggest range of 3rd-party python modules). The module '' | All python modules should have mpi4py, numpy and scipy installed; however if matplotlib is required, please use anaconda (which also has the biggest range of 3rd-party python modules). The module '' | ||