ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • installing miniforge
    카테고리 없음 2024. 11. 6. 22:42

    Example of installing miniforce (kind like mini conda) on the sigma2 server machine.

    #!/bin/bash
    
    # Variables
    MINIFORGE_URL="https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-x86_64.sh"
    MINIFORGE_INSTALL_PATH="/cluster/projects/nn11068k/miniforge3"
    
    # Silently download and install Miniforge
    echo "Downloading and installing Miniforge..."
    wget -q "$MINIFORGE_URL" -O /tmp/Miniforge3.sh
    bash /tmp/Miniforge3.sh -b -p "$MINIFORGE_INSTALL_PATH"
    
    # Initialize Conda
    echo "Initializing Conda..."
    eval "$($MINIFORGE_INSTALL_PATH/bin/conda shell.bash hook)"
    conda init
    
    # Ensure Conda is available in the current shell
    source ~/.bashrc

    Comments