[Ubuntu] Anaconda(아나콘다) 설치 후 conda 명령어 시 sudo 사용하라는 issue - NotWritableError: The current user does not have write permissions to a required path. In general, it’s not advisable to use ‘sudo conda’.
(base) [Mon Mar 15 / 21:12:27]jsh-fw:~$ conda create -n jsh-fw
NotWritableError: The current user does not have write permissions to a required path.
path: /home/jsh-fw/.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/jsh-fw/.conda/envs/.conda_envs_dir_test
In general, it’s not advisable to use ‘sudo conda’.
(base) [Mon Mar 15 / 21:12:33]jsh-fw:~$
다음과 같은 문제 발생 시 아래 명령어로 해결할 수 있다.
sudo chown -R $USER:$USER anaconda3