Open sun2ot opened 3 months 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.
I have the same issue using Windows Powershell and Powershell 7. Using command prompt, using the Miniforge3 prompt shortcut, everything works as expected.
Adding "help wanted" as this will need code contributions from someone familiar with and the ability to test Windows and PowerShell to improve
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