2

I was trying to update anaconda by:

conda update conda

it returns:

PermissionError(13, 'Permission denied')

Then I found out that the same happens for pip:

pip install --upgrade pip

returns:

Could not install packages due to an EnvironmentError:
 [Errno 13] Permission denied: '/home/user/anaconda3/bin/pip'

Can someone tell me what is going on and how to fix it?

Zanna
  • 70,465
VIN
  • 53

1 Answers1

4

According to conda's github page:

Its may because of ~/anaconda3's owner and group. You can change this directories owner and group by this command:

sudo chown -R $USER:$USER ~/anaconda3

According to this answer:

If the above command not works for you, this one may be helpful:

sudo env "PATH=$PATH" conda update conda