How to open conda shell in mac
Mia Lopez
I am new to conda and mac (i mostly use Ubuntu and pip). Is there a conda shell on mac (I guess I read somewhere that there is none).
If that is the case, how am I suppose to run command like:
conda env create -f environment.ymlas asked here:
I opened Anaconda Navigator then > Environment > Create > import > and in Specification File gave path of above environment.yml file.
Is the above step correct? Is there a way to do this via shell in Mac? (I am using macOS Catalina Version 10.15.3)
4 Answers
I am not a Mac user, but I think you can run anaconda commands directly from the terminal, just like in Ubuntu. There's no anaconda prompt in Mac.
3I was having the same problem. I opened the Anaconda Navigator program. I clicked on "Environments." Under the working environment, I clicked the right arrow and one of the options was "Open Terminal." When the terminal opened using this sequence, I was able to use the conda commands. Like you I am using Mac OS Catalina.
1if in case you have clicked no during conda installation when it asked if it should be added to path or you just can't access it on your terminal for any other reason:
Run this conda update anaconda-navigator in your terminal.
But most likely it won't work because you don't have access of conda in your shell. What you have to do is run one at time the following steps in your terminal.
1st:
nano ~/.bash_profile2nd:
export PATH=/usr/local/anaconda3/bin:$PATH3rd:
source ~/.bash_profileThen try:
condaAnd finally make sure you exited your anaconda navigator, then run this:
conda update anaconda-navigatorThis should do it, but if in case don't work out try to install homebrew in your Mac then repeat the steps.
On installing anaconda on mac it may install conda in the zsh shell. So you may want to test starting the zsh.
$ zshand it should start the terminal with the (base)
(base)$ conda --versionNever hurts to double check.