Whenever I open a terminal, I have to write
export PATH=~/anaconda3/bin:$PATH
to use any feature of anaconda
I want a persistent path.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityWhenever I open a terminal, I have to write
export PATH=~/anaconda3/bin:$PATH
to use any feature of anaconda
I want a persistent path.
the file .bashrc (hidden file), located in the home directory, runs codes every time a new terminal is opened.
Then add a line on it:
export PATH=~/anaconda3/bin:$PATH
Wouldn't it be nice if somebody else would handle that for you? ;-)
Edit your .profile
and add something like the following lines:
if [ -d "$HOME/anaconda3/bin" ] ; then
PATH="$HOME/anaconda3/bin:$PATH"
fi
Start with:
sudo nano ~/.bashrc
go down to the last line in the file and add
export PATH=~/anaconda3/bin:$PATH
then Ctrl+X and then enter
open a new terminal and enjoy anaconda--navigator
Reinstall anaconda, and notice that at the end of the install process there is a optional selection that allow you to add conda command to your PATH.
You can choose to say yes, and then you can use the command conda
.