Open serious-gist opened 3 months ago
are you using WSL?
ps. i'm no windows expect, but it looks like you have "unix" in windows so i'm trying to make sure we have the full information about your setup.
That ^M
symbol is usually a tell-tale of Windows line endings on Unix stuff.
Solution to issue cannot be found in the documentation.
Issue
Expected Behaviour windows11 + ohmyzsh + anaconda
Actual Behaviour conda init zsh
shell will add this code to my .zshrc
if [ -f '/d/Softwares/Miniforge/Scripts/conda.exe' ]; then eval "$('/d/Softwares/Miniforge/Scripts/conda.exe' 'shell.zsh' 'hook')" fi
Steps to Reproduce ➜ ~ conda init no change D:\Softwares\Miniforge\Scripts\conda.exe no change D:\Softwares\Miniforge\Scripts\conda-env.exe no change D:\Softwares\Miniforge\Scripts\conda-script.py no change D:\Softwares\Miniforge\Scripts\conda-env-script.py no change D:\Softwares\Miniforge\condabin\conda.bat no change D:\Softwares\Miniforge\Library\bin\conda.bat no change D:\Softwares\Miniforge\condabin_conda_activate.bat no change D:\Softwares\Miniforge\condabin\rename_tmp.bat no change D:\Softwares\Miniforge\condabin\conda_auto_activate.bat no change D:\Softwares\Miniforge\condabin\conda_hook.bat no change D:\Softwares\Miniforge\Scripts\activate.bat no change D:\Softwares\Miniforge\condabin\activate.bat no change D:\Softwares\Miniforge\condabin\deactivate.bat no change D:\Softwares\Miniforge\Scripts\activate no change D:\Softwares\Miniforge\Scripts\deactivate no change D:\Softwares\Miniforge\etc\profile.d\conda.sh no change D:\Softwares\Miniforge\etc\fish\conf.d\conda.fish no change D:\Softwares\Miniforge\shell\condabin\Conda.psm1 no change D:\Softwares\Miniforge\shell\condabin\conda-hook.ps1 no change D:\Softwares\Miniforge\Lib\site-packages\xontrib\conda.xsh no change D:\Softwares\Miniforge\etc\profile.d\conda.csh no change C:\Users\qiqiang.wang\Documents\WindowsPowerShell\profile.ps1 no change HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun No action taken.
➜ ~ conda activate base
CondaError: Run 'conda init' before 'conda activate'
Installed packages
Environment info