conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6k stars 317 forks source link

mamba not found after fresh install from mambaforge on Ubuntu Focal Fossa #433

Closed rbavery closed 1 year ago

rbavery commented 1 year ago

Solution to issue cannot be found in the documentation.

Issue

on a fresh install of mambaforge, the path is not set by the installer and mamba is not found. my home path is /home/ubuntu on an EC2 instance

 wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
bash Mambaforge-Linux-x86_64.sh -b
Linking conda-22.11.1-py310hff52083_1
Linking mamba-1.1.0-py310h51d5547_3
Transaction finished
installation finished.
mamba
mamba not found

I would expect mamba to be available after running the bash script. exiting and then re-sshing or rebooting did not make mamba available.

Installed packages

not applicable

Environment info

not applicable
hmaarrfk commented 1 year ago

batch modes doesn't "install" the conda hooks. You have to initialize the conda and make conda work manually if you use batch mode.

rbavery commented 1 year ago

got it thank you! I'm not sure exactly where but I think I saw the -b flag online somewhere

fantasy-fish commented 1 year ago

batch modes doesn't "install" the conda hooks. You have to initialize the conda and make conda work manually if you use batch mode.

Hi I met the same problem even if I don't use -b. My command is sudo bash Mambaforge-Linux-x86_64.sh

hmaarrfk commented 1 year ago

please use sudo with caution.

I would suggest you do not use sudo until you absolutely need to.

It likely installed to /root/mambaforge and not to your user's directory.

Please try again without sudo.

If you have other troubles, please open a new issue with your specific usecase.