Just after installing anaconda and preparing CONDA create environment, we encountered the following error
NotWritableError: The current user does not have write permissions to a required path.
path: /home/NAME/.conda/envs/.conda_envs_dir_test
uid: 1000
gid: 1000
If you feel that permissions on this path are set incorrectly, you can manually
change them by executing
$ sudo chown 1000:1000 /home/NAME/.conda/envs/.conda_envs_dir_test
In general, it's not advisable to use 'sudo conda'.
According to the prompt he gave, the operation failed, so use the following command to change the permissions of CONDA related folder, – R recursively applied to subfolders
sudo chmod 777 -R ~/anaconda3/
sudo chmod 777 -R ~/.conda/
If the problem is solved for the time being, we will not report the above mistakes
Maybe it’s the redundant problem caused by using sudo sh ana… When installing anaconda.