Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`conda` gives "No such file or Directory" although I added PATH in my .bash_profile

My Jupyter notebook and Conda was breaking down so I decided to remove everything and install it again.

I installed anaconda using brew cask install anaconda Afterward, I added export PATH="/usr/local/anaconda3/bin:$PATH" in my .bash_profile (Everything from this instruction)

However, when I type conda --version it says -bash: /Users/leonard/anaconda3/bin/conda: No such file or directory

  1. Why does this happen and how can I fix it?

  2. I just want to get my Jupyter notebook, R, and Python working. Is it possible to use these without using Anaconda? I've been having so many troubles.

like image 905
Leonard Avatar asked Jul 14 '19 10:07

Leonard


People also ask

How do I know if conda is added to PATH?

Check for conda install If conda is installed and its system path is registered in the PATH environmental variable, conda help contents should appear in the terminal. If the help contents appear, skip to the Install API section.

How do I run a conda in Git bash?

In order to make the conda command available in Git Bash, you need to add conda's shell script to your . bashrc file. This is the same file that you store your bash aliases in (such as the sqlite3 alias you probably created when you followed these instructions). Open this folder, then navigate to etc -> profile.

How do I find my conda environment PATH?

If you activate the environment you're interested in, you can find that answer in the environment variables. You can also run conda info --envs , and that will show the paths to all your environments. That should return the path you're looking for.


1 Answers

Close that terminal and restart,It worked for me

like image 141
MbeforeL Avatar answered Oct 04 '22 15:10

MbeforeL