Search code examples
windowsbashgitcondagit-for-windows

Windows cmd git bash: conda.sh no such file or directory (Windows line endings, missing slashes)


I'm working in Windows 10 with a fresh installation of Anaconda and Git Bash. I decided to set cmd.exe as my default console program to use git bash (instead of the minTTY), and I think already I am getting issues with Unix style characters vs Windows.

When I fire up cmd Bash tells me it can't find my conda.sh file:

bash: C:UsersjoshuAnaconda3/etc/profile.d/conda.sh: No such file or directory

First, it looks like bash is missing the default windows slashes for my root directory ("C:/Users/joshu/"). Does anyone know how to fix this?

Thanks


Solution

  • I have the exact same problem. Run ~/.bashrc in a terminal. Go to the path given and correct the conda.sh path.

    In your case, you will replace the C:\Users\joshu\Anaconda3/etc/profile.d/conda.sh to C:/Users/joshu/Anaconda3/etc/profile.d/conda.sh Your only problem is that your slashes are set wrong.