Use Python on Pi supercomputer

This document shows you how to use Miniconda to up customized Python environment in your $HOME directory. Depending on your preferred Python version, 2 or 3, two Miniconda are available.

  1. Miniconda 2
  2. Miniconda 3

Miniconda 2

Load Miniconda version 2.

$ module purge
$ module use /lustre/usr/modulefiles
$ module load miniconda2/4.3

Create a conda envirionment along with selected Python packages.

$ conda create --name mypython2 numpy scipy matplotlib ipython jupyter

Activate your python environment.

$ source activate mypython2

Add more packages via conda or pip.

$ conda install YOUR_PACKAGE
$ pip install YOUR_PACKAGE

Miniconda 3

Load Miniconda version 3.

$ module purge
$ module use /lustre/usr/modulefiles
$ module load miniconda3/4.3

Create a conda envirionment along with selected Python packages.

$ conda create --name mypython3 numpy scipy matplotlib ipython jupyter

Activate your python environment.

$ source activate mypython3

Add more packages via conda or pip.

$ conda install YOUR_PACKAGE
$ pip install YOUR_PACKAGE