Python is an interpretive programming language


CCR only supports the Anaconda distribution of Python and only Python packages supported by the Anaconda installer will be available with the python/anaconda module.  A list of such packages may be found here. If you wish to use additional Python packages, you should install them in your home or project directory.  Instructions for doing so are provided below.



Usage Notes:


A "stock" installation of Python is in the default path and is distributed with the operating system.

Show which Python version is installed with the command:

    'python -V' 


Show the installation path with the command:
    'which python'


CCR also supports an alternative to the "stock" installation via the Anaconda distribution.  It is available as a module.


Show the available software versions:
    module avail python

Note: The more recent versions of anaconda python are in the /util/common/ section.


Show the most recent software version installed:

    module show python/anaconda


Loading the module will set the path and any necessary variables:
    module load python


Anaconda Python comes installed with numerous packages including NumPY and SciPY.  Additional packages that are certified to work correctly within the Anaconda Python distribution are available from the anaconda repository.  Other packages may also be available but are not guaranteed to work.  Individual users are responsible for the installation and maintenance of packages not included in the CCR anaconda installation.  Instructions for installing packages in "user space" are given below.



Installing a Certified Package from the Anaconda Repository
:

Use "conda install" for certified packages:
     module load python/anaconda
     conda install -p /path/to/your/pkg/install/dir   name_of_package

Note: /path/to/your/pkg/install/dir could be either under /projects or your user home directory. More information on "conda install" is located here.



Installing Any Other Python Packages:

Use pip to install in your home directory:
       module load python/anaconda
       pip install --user name_of_package


Use pip to install in a projects directory:
       module load python/anaconda
pip install --install-option="--prefix=/projects/my/pkg/dir" --install-option="--install-lib=/projects/my/pkg/dir/lib" name_of_package

More information on pip install is available here.



Installing your own Anaconda Python

 

Instructions for installing your own python can be found here