"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
Share:
20,702
VIN
Author by

VIN

Just a casual enthusiasm, with self-taught coding.

Updated on September 18, 2022

Comments

  • VIN
    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
    Ali Razmdideh over 5 years
    @VIN I'm glad I could help you, If this answer be helpful please accept it.