How to use Python on Seawulf

Current Version

Python 3 is available on Seawulf and is managed through Anaconda. Anaconda is a package manager that comes pre-installed with many commonly used scientific computing libraries.

If your script requires python 3 and does not use MPI, run:

module load anaconda/3

To ensure that you are executing the correct version, type which python to confirm that Anaconda 3 is loaded:

which python

/gpfs/software/anaconda3/bin/python

You can also confirm that you are running the correct python version by typing python --version.


MPI with Python (mpi4py)

For multi-node parallel programming in Python, we use the mpi4py package.

Please do not load other MPI modules (such as mvapich2 or openmpi) alongside Python, as this often causes version conflicts.

For detailed instructions on setting up parallel Python environments and running mpi4py jobs, please refer to our software documentation:

Using mpi4py on SeaWulf