Anaconda is only available to root
I downloaded the Anaconda3-2020.02-Linux-x86_64.sh from official site and used the command:
sudo sh Anaconda3-2020.02-Linux-x86_64.shTo install. By default it installed inside '/root/anaconda3'. Now, I can only access python and conda when I use 'sudo su'. How can I make it available for myself?
2 Answers
Follow the uninstall process given in below link
login as root user
sudo suInstall anaconda clean pkg
conda install anaconda-cleanremove all anaconda related files
anaconda-clean --yesremove the anaconda folder (most likely created in root folder if you selected default)
rm -rf /root/anaconda3remove the conda path configuration from bashrc file (use vi or gedit or nano editor)
And then run the installation file without the elevated user so that conda is accessible to your userid.
You should have installed it on behalf of your user without sudo command.
Basically, follow these steps from official installation docs.