I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH"
to my .bachrc
and .bash_profile
but still can't run any conda commands in my terminal.
Am I missing another setup? I'm using zsh by the way.
If you're using zsh and it has not been set up to read .bashrc, you need to add the Miniconda directory to the zsh shell PATH environment variable. Add this to your .zshrc
:
export PATH="/home/username/miniconda/bin:$PATH"
Make sure to replace /home/username/miniconda
with your actual path.
Save, exit the terminal and then reopen the terminal. conda
command should work.
Instead of exiting and reopening, Using
source ~/.zshrc
will doI tried this, but I still get an error when trying to install stuff
CondaIOError: Missing write permissions in: /anaconda
It works! But the path has a slight difference.
export PATH="/Users/victorzhang/anaconda2/bin:$PATH"
, the path beginning is/Users/
, instead of/home/
still thank you @olivrgFor those who don't know: copy the command in the
.zshrc
file that will be located in your/User/<yourusername>/
directory.My binary was in condabin at in /usr/local/anaconda3--it's 2021 and I'm on a Mac. I added condabin to the path in .zshrc at /User/<yourusername>/ and it worked.