Anaconda is only available to root

6,464

Solution 1

You should have installed it on behalf of your user without sudo command.

Basically, follow these steps from official installation docs.

Solution 2

Follow the uninstall process given in below link

https://docs.anaconda.com/anaconda/install/uninstall/

login as root user

sudo su

Install anaconda clean pkg

conda install anaconda-clean

remove all anaconda related files

anaconda-clean --yes

remove the anaconda folder (most likely created in root folder if you selected default)

rm -rf /root/anaconda3

remove 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.

Share:
6,464

Related videos on Youtube

Ali Sajjad
Author by

Ali Sajjad

I work as a Software Engineer in a company, and I'm a freelancer at Fiverr.com mainly providing services related to automation with Python. Task automation and backend development with python is my top skill.

Updated on September 18, 2022

Comments

  • Ali Sajjad
    Ali Sajjad almost 2 years

    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.sh
    

    To 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?