Updating Anaconda fails: Environment Not Writable Error

前端 未结 14 1932
萌比男神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:02

    Open this folder "C:\ProgramData\" and right-click on "\Anaconda3". go to properties -> security and check all the boxes for each user. This worked for me.

    0 讨论(0)
  • 2020-12-23 20:04

    start your command prompt with run as administrator

    0 讨论(0)
  • 2020-12-23 20:09

    this line of code on your terminal, solves the problem

    $ sudo chown -R $USER:$USER anaconda 3
    
    0 讨论(0)
  • 2020-12-23 20:10

    On Windows in general, running command prompt with administrator works. But if you don't want to do that every time, specify Full control permissions of your user (or simply all users) on Anaconda3 directory. Be aware that specifying it for all users allows other users to install their own packages and modify the content.

    0 讨论(0)
  • 2020-12-23 20:11

    Deleting file .condarc (eg./root/.condarc) in the user's home directory before installation, resolved the issue.

    0 讨论(0)
  • 2020-12-23 20:11

    In my case somehow CONDA_ENVS_PATH was removed, so I was having NotWritableError. So I fixed the error by specifying

    CONDA_ENVS_PATH=~/my-envs:/opt/anaconda/envs
    

    in the .bashrc file

    0 讨论(0)
提交回复
热议问题