You need to add the custom installation directory to your PATH
environment variable.
-
Open your shell configuration file (
.bashrc
,.zshrc
, or equivalent):nano ~/.bashrc
Or for Zsh:
nano ~/.zshrc
-
Add the following line at the end of the file:
export PATH="/home/ubuntu/phusr/miniconda3/bin:$PATH"
-
Save and exit the editor:
- In
nano
: PressCtrl + O
, thenEnter
, andCtrl + X
to exit.
- In
-
Reload the shell configuration to apply the changes:
source ~/.bashrc
Or for Zsh:
source ~/.zshrc
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
Check that Conda is properly installed and working:
conda --version
Example output:
conda 23.1.0
Make sure you have the latest version of Conda:
conda update conda
If you haven't removed the installer yet, you can delete it to save space:
rm ~/Miniconda3-latest-*.sh
pip install -U "huggingface_hub[cli]"