So I installed Anaconda and everything is working. After I installed it I decided to switch to oh-my-zsh
. I am now getting:
zsh: command not found: conda
when trying to use pip
or conda
installs
echo $ZSH_VERSION
5.0.5
I have added to my zshenv.sh
export PATH ="/Users/Dz/anaconda/bin:$PATH"
What is it that I'm missing?
As of today Nov 4, 2018 all the following methods works, install the zsh with:
Not recommending brew installation for zsh:
P.S: Tried with with brew and brew install under the root and is not an wise idea to do so due the security and all time anything related will need to be started under sudo so better is to stick with curl or wget.
to make work conda in OS X with oh-my-zsh installed is to add path as following and will work.
Finding your Anaconda Python interpreter path
FYI for anyone having this same issue keep in mind that you need to make sure that you have the right version of anaconda in that export path:
Spent way too long on that minor issue.
You need to fix the spacing and quotes:
Instead use
Find the right version of your
anaconda
Put it to
~/.zshrc
via commandvim ~/.zshrc
export PATH="/User/<your-username>/anaconda2/bin:$PATH"
export PATH="/User/<your-username>/anaconda3/bin:$PATH"
export PATH="/anaconda2/bin:$PATH"
export PATH="/anaconda3/bin:$PATH"
Restart the zsh
source ~/.zshrc
I just ran into the same problem. As implicitly stated inside the .zshrc-file (in your user-root-folder), you need to migrate the pathes you've already inserted in your .bash_profile, bashrc or so to resolve this.
Copying all additional pathes from .bash_profile to .zshrc fixed it for me, cause zsh now knows where to look.
Depending on where you installed anaconda this path might be different.
This is all I had to add to add get anaconda working for zsh.