Main navigation

Python

Python is a high-level,  interpreted, multi-purpose programming language.

Load Python into your environment

To see what versions of Python are available enter at the command prompt:

module avail python

To set up your environment to use Python, use the module command:

module load python/<version>

For example, to load Python version 2.7, use: module load python/2.7

See How to use the module command for further information (in particular see: “How to use the module command in scripts for batch execution” to learn how to invoke the module command from within a script).

Check which Python packages are available

To see which Python modules are available, at the Python prompt, enter:

help('modules')

Install Python packages in your $HOME directory

To install new python packages (or different versions then those available) use:

module load python/<version>
pip install <python-package name> --user

Note, python3 users need to use instead:

module load python/3.x
python3 -m pip install <python-package name> --user

Install high performance numpy and scipy with Intel MKL

Please see High performance numpy and scipy with MKL

Report Typos and Errors
UCLA OIT

© 2016 UC REGENTS TERMS OF USE & PRIVACY POLICY