/iGPT

Primary LanguagePython

Add conda

Step 1: Add Miniconda to Your Path

You need to add the custom installation directory to your PATH environment variable.

  1. Open your shell configuration file (.bashrc, .zshrc, or equivalent):

    nano ~/.bashrc

    Or for Zsh:

    nano ~/.zshrc
  2. Add the following line at the end of the file:

    export PATH="/home/ubuntu/phusr/miniconda3/bin:$PATH"
  3. Save and exit the editor:

    • In nano: Press Ctrl + O, then Enter, and Ctrl + X to exit.
  4. Reload the shell configuration to apply the changes:

    source ~/.bashrc

    Or for Zsh:

    source ~/.zshrc

Step 2: Initialize Conda

Run the following command to initialize Miniconda for your shell:

/home/ubuntu/phusr/miniconda3/bin/conda init

Restart your terminal or reload your shell configuration:

source ~/.bashrc  # or source ~/.zshrc

Step 3: Verify the Installation

Check that Conda is properly installed and working:

conda --version

Example output:

conda 23.1.0

Step 4: Update Conda (Optional)

Make sure you have the latest version of Conda:

conda update conda

Optional: Clean Up Installation File

If you haven't removed the installer yet, you can delete it to save space:

rm ~/Miniconda3-latest-*.sh

Huggingface

pip install -U "huggingface_hub[cli]"