Mohamed Genedy
Mohamed Genedy

Reputation: 89

Warning on git bash start "bash: C:/Users/RS3/Anaconda3/etc/profile.d/conda.sh: No such file or directory"

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.

Warning

Upvotes: -1

Views: 1936

Answers (2)

Tu Papa
Tu Papa

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:

  1. Open Git Bash and check .bashrc location by typing ~/.bashrc into git bash.
  2. Navigate to folder where .bashrc file is located.
  3. Type nano .bashrc
  4. Erase the string that says C:/Users/RS3/Anaconda3/etc/profile.d/conda.sh
  5. Press ctrl+O to save .bashrc file and then ctrl+X to exit.

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

VonC
VonC

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

Related Questions