I\'m trying to update Anaconda and its packages using conda update --name root conda
, but it fails every time.
Error message : Environme
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.
start your command prompt with run as administrator
this line of code on your terminal, solves the problem
$ sudo chown -R $USER:$USER anaconda 3
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.
Deleting file .condarc (eg./root/.condarc) in the user's home directory before installation, resolved the issue.
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