"Errno 13 Permission denied" for pip and anaconda
20,702
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
Comments
-
VIN over 1 year
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?
-
Ali Razmdideh over 5 yearsWhat is this output of this command :
ls -ld ~/anaconda3
? -
N0rbert over 5 yearsPossible duplicate of unable to upgrade pip on Python 3.4
-
Pablo Bianchi over 5 yearsSolved with
pip install <package> --user
.
-
-
Ali Razmdideh over 5 years@VIN I'm glad I could help you, If this answer be helpful please accept it.