Open michaels10 opened 1 year ago
- Run
conda install mamba -n base -c conda-forge
Note that it is not recommended to use this way of installation.
In any case the issue you are facing should be unrelated.
Did you run mamba init
from a bash shell or from a zsh shell?
I just realized this
$ mamba init -h
usage: mamba init [-h] [--all] [--user] [--no-user] [--system] [--reverse] [--json] [-v] [-q] [-d] [shells ...]
Initialize conda for shell interaction.
Options:
positional arguments:
shells One or more shells to be initialized. If not given, the default value is 'bash' on unix and 'cmd.exe' on
Windows.
So it looks like this is expected and documented behaviour that's inherited from Conda. Did Conda initialize .zshrc
when you set up Conda, contrary to the documentation?
Hi Jonah,
Re: Not recommended
I understand that it isn't recommended. However, I have existing conda environments that I didn't want to lose, and the installation instructions don't suggest a way to replace an extant conda installation without running that command; I spent a little time looking around for one and didn't find it. I'm certainly nowhere near confident enough with conda to play with uninstall commands like that, reinstalling environments wouldn't be a great use of time.
Re: Inherited from conda
FWIW, I believe I installed conda from brew and didn't run into such an issue. It does look like there are instructions for conda init
under 'Manual Installation', somewhere among a bunch of other commands that aren't really relevant to this install.
I think this isn't so much a bug, as much as it is slightly-out-of-date docs.
Maybe Homebrew automatically sets up zsh.
If you could come up with a PR that improves the docs that would be highly appreciated!
Troubleshooting docs
Search tried in issue tracker
yes
Latest version of Mamba
Tried in Conda?
Not applicable
Describe your issue
I am on an M1 Mac Studio; I had a prior conda install that I wanted to switch to mamba. I did the following:
conda install mamba -n base -c conda-forge
mamba init
mamba activate
still does not work!mamba init
modifies/Users/michaelsandler/.bash_profile
-- but this is a Mac, so the default shell is zsh, not bash!bash_profile
to my.zshrc
, which seems to be working fine.mamba info / micromamba info
Logs
No response
environment.yml
No response
~/.condarc
No response