Reputation: 89
Whenever I open git bash I get the following warning:
bash: C:/Users/RS3/Anaconda3/etc/profile.d/conda.sh: No such file or directory
The problem is that I uninstalled Anaconda, because I installed independent python, which resulted in giving that error.
How to remove this Warning.
Upvotes: -1
Views: 1936
Reputation: 11
To remove that warning, simply erase the file path string in the .bashrc file using nano command. Here's how:
Steps to remove that warning:
~/.bashrc
into git bash.nano .bashrc
C:/Users/RS3/Anaconda3/etc/profile.d/conda.sh
When you reopen git bash nothing should appear because .bashrc doesn't have that path in it anymore. Also, if conda commands were working before it will still continue to work after erasing this.
Upvotes: 1
Reputation: 1323553
Check the content of ~/.bashrc
(which was mentioned here)
Maybe that (or ~/.profile
, mentioned here) includes a command for that old uni uninstalled program.
Remove those lines, and try to open again a git bash
session.
Upvotes: 2