Variable path issue : conda command not found
Solution 1:
Try adding below line to your .bashrc
file
export PATH=~/anaconda3/bin:$PATH
then try:
conda --version
to see version
Solution 2:
Lets fix it like this:
-
Move it out of
/root/
with:sudo mv /root/anaconda3 /home/$USER
-
Add this to
/home/ahmed/.bashrc
please don't use 'sudo' here simple donano /home/$USER/.bashrc
:# Anaconda3 export PATH="/home/ahmed/anaconda2/bin:$PATH"
-
Source the
.bashrc
file with:source /home/ahmed/.bashrc
Now delete the entry [
export PATH="/root/anaconda3/bin"
] in/root/.bashrc
withnano editor
or with the editor you used beforeOpen new terminal and check