Updating Anaconda fails: Environment Not Writable Error

前端 未结 14 2096
萌比男神i
萌比男神i 2020-12-23 19:54

I\'m trying to update Anaconda and its packages using conda update --name root conda, but it fails every time.

Error message : Environme

14条回答
  •  旧巷少年郎
    2020-12-23 20:21

    I had installed anaconda via the system installer on OS X in the past, which created a ~/.conda/environments.txt owned by root. Conda could not modify this file, hence the error.

    To fix this issue, I changed the ownership of that directory and file to my username:

    sudo chown -R $USER ~/.conda
    

提交回复
热议问题