Skip to content

Python and Conda

You can install software in your /hpc/home/$USER space if sudo access is not required. Most commonly, users install Conda to use Python and other supported languages. For other software, we recommend building a container.

Warning

Do not install software in /work. It is temporary storage, and files older than 75 days are purged automatically.

Users are encouraged to install their own instance of Conda in their home directory. This allows users to manage their own Python environments and install packages as needed without requiring admin access.

To install Conda, login to the cluster either through SSH, Open OnDemand shell, or an Open OnDemand Jupyter Terminal and run the following commands from your home directory,

  1. Download the Miniforge installer,

    wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
    
  2. Run the installation script,

    bash Miniforge3.sh
    

    and then follow the instructions. It will offer to update your ~/.bashrc, (init), say no if you use multiple environments. Say yes if you will only be using this environment.

  3. Restart your shell,

    exec bash
    
  4. Finally, delete your installation file to save space,

    rm Miniforge3.sh
    

Now you can run conda install, pip install, create environments, etc.

To learn about managing conda environments on Open OnDemand JupyterLab instances, please read the Managing Conda Environments on Open OnDemand JupyterLab instances guide.