How does one fix the issue of not writable paths with conda?

前端 未结 5 1221
梦谈多话
梦谈多话 2021-02-05 15:33

Why do I see the following error when using conda (usually when installing packages or making new envs) and how do I fix it:

Verifying transaction: | WARNING cond         


        
5条回答
  •  旧巷少年郎
    2021-02-05 16:10

    I ran the top voted answer but because the chmod command did not have the recursive flag it did not work and later gave me problems (because I didn't change the permissions of EVERYTHING inside the conda folder of course):

    So change permissions recursively of the directory with:

    sudo chmod -R 775 /Users/brandomiranda/.conda
    

    swap /Users/brandomiranda/ for your path to .conda of course.


    If you are worried about using sudo I believe its not that bad to have to run it because we are only changing the permissions of a very specific directory (which is much safer than say, running any conda command with sudo!)

    The fact is, I don't know why the issue came despite me (I believe) installing conda properly with the conda .sh script as I outlined in the question. Solving that is the real solution I assume but I don't know how to solve that (I guess I could try re-installing yet again...)

提交回复
热议问题