Friday, March 24, 2017

Edit $PATH After Anaconda Installed If 'conda' Command Can't Be Found

Edit $PATH After Anaconda Installed If 'conda' Command Can't Be Found

Anaconda is a Python package utility which contains many great packages for scientific and mathematical computation. Users just install it once and it’s all set.

Problem after installation:

The ‘conda’ command can’t be found after Anaconda installed.

Solution:

Edit the paths file in the user’s root directory according to the shell used( bash or zsh).

if using bash shell, edit .bashrcfile.
if using zsh shell, edit .zshrcfile.

Add the following line to the end of the file and save.

export PATH="$HOME/anaconda/bin:$PATH"

Reopen the terminal and it’s all done!

No comments:

Post a Comment