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.
Read More:
- The current user does not have write permissions to the target environment.
- Error in downloading update creation environment of CONDA: collecting package metadata (current_ repodata.json): failed
- Vscode cannot write user settings. Open user settings, clear errors or warnings, and then type again
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- RemoveError: ‘setuptools’ is a dependency of conda and cannot be removed from conda’s operatin
- [resolved] superset failed to create admin user: error! User already exists user or attributeerror: ‘nonetype’‘
- Removeerror: ‘requests’ is a dependency of CONDA and cannot be removed from CONDA’s o
- CONDA creating virtual environment and common CONDA commands
- RemoveError: ‘requests‘ is a dependency of conda and cannot be removed from conda‘s operating env
- RemoveError: ‘requests’ is a dependency of conda and cannot be removed from conda’s operating enviro
- conda install failed: conda.core.subdir_ data.Response304ContentUnchanged Python cannot be installed
- Add Samba user prompt failed to add entry for user
- CONDA upgrade command: upgrade CONDA, anaconda and various packages
- Could not write JSON: write javaBean error, fastjson version x.x.x, class
- User space operation GPIO error echo: write error: device or resource busy error resolution
- C language write() function analysis: write failed bad address
- RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at /opt/conda/conda-bld/
- Invalid archiveerror reported by CONDA
- Add executable permissions to Linux files
- Error 1406: could not write value installpath to key