conda init doesn't work in bash on Windows

2/19/2022 conda
  • conda init creates a .bash_profile file with the correct initialisation, but git-bash.exe loads .bashrc (thanks to Auss' comment)
  • My bash home directory was not equal to my windows home directory. Conda created C:\Users\<username>\.bash_profile and bash needs ~/.bashrc, but ~/ was not equal to C:\Users\<username>\.

solution was to run next command in git terminal or VS Code

conda init bash
cat ~/.bash_profile >> ~/.bashrc
source ~/.bashrc
conda activate base
1
2
3
4
Last Updated: 12/26/2022, 11:54:10 AM