mamba activate
fails in Windows after starting cmd.exe with activate.bat
, shell not initialized
#3879
Open
3 tasks done
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Other (please describe)
Search tried in issue tracker
done, something like related: #3684
Latest version of Mamba
Tried in Conda?
I do not have this problem with Conda, just with Mamba
Describe your issue
When launching
cmd.exe
with the following command on Windows:This brings up a
base
environment (as expected). However, attempting to switch to another environment usingmamba activate <env>
results in the following error:This makes it impossible to use
mamba
properly in this setup, as no environment can be activated this way.Interestingly, this works as expected if I run:
So the problem seems to be that
mamba activate
cannot function if a base environment was pre-activated using the legacyactivate.bat
script, or mamba itself. It also lacks amamba deactivate
command, which could be used to work around the issue.Expected behavior:
mamba activate <env>
without manually deactivating beforehand.activate.bat
, ormamba
should detect and handle that state more gracefully.mamba info / micromamba info
Logs
environment.yml
~/.condarc
The text was updated successfully, but these errors were encountered: