Open sun2ot opened 1 month ago
I have the same issue, and it does work in Windows Subsystem for Linux.
in Powershell:
> cd C:\
(base) PS C:\> where.exe python.exe
C:\Users\Matthijs.Kramer\AppData\Local\miniforge3\python.exe
C:\Users\Matthijs.Kramer\AppData\Local\Microsoft\WindowsApps\python.exe
(base) PS C:\> mamba activate test
(base) PS C:\> where.exe python.exe
C:\Users\Matthijs.Kramer\AppData\Local\miniforge3\python.exe
C:\Users\Matthijs.Kramer\AppData\Local\Microsoft\WindowsApps\python.exe
(base) PS C:\> conda activate test
(test) PS C:\> where.exe python.exe
C:\Users\Matthijs.Kramer\AppData\Local\miniforge3\envs\test\python.exe
C:\Users\Matthijs.Kramer\AppData\Local\miniforge3\python.exe
C:\Users\Matthijs.Kramer\AppData\Local\Microsoft\WindowsApps\python.exe
In WSL (Ubuntu terminal):
(manta) matthijs@DTN-FXC2PX3:/$ mamba deactivate
(base) matthijs@DTN-FXC2PX3:/$ which python
/home/matthijs/miniforge3/bin/python
(base) matthijs@DTN-FXC2PX3:/$ cd /
(base) matthijs@DTN-FXC2PX3:/$ which python
/home/matthijs/miniforge3/bin/python
(base) matthijs@DTN-FXC2PX3:/$ mamba activate test
(test) matthijs@DTN-FXC2PX3:/$ which python
/home/matthijs/miniforge3/envs/test/bin/python
I have the same issue. mamba activate/deactivate
works in cmd but not in PowerShell.
Solution to issue cannot be found in the documentation.
Issue
After installed the latest miniforge, running
mamba init powershell
, but themamba activate/deactivate
is not working. It will not change the env and output no errors. Andconda activate/deactivate
is working properly.Installed packages
Environment info