shell - I have to type export PATH=~/anaconda/bin:"$PATH" everytime I rerun the terminal -


i have installed anaconda mac, there wrong me:

when type commandwhich conda or which ipython, conda not found , ipython not find

then find command export path=~/anaconda/bin:"$path" works me. solves problem above, everytime rerun terminal problem still there, have type again.

so want find way solve problem fundamentally

i have tried add ~/.bashrc, ~/.profile, ~/.bash_profile, these don't work me.

try in .bash_profile

export path="$home/anaconda/bin:$path" 

then try launching new terminal , running:

echo $path 

the output should start /anaconda/bin:

if still doesn't work... work around might invoke bash after running terminal i.e. type "bash". should cause bash launch .bash_profile


Comments