出错
使用conda创建虚拟环境时出现以下错误
NotWritableError: The current user does not have write permissions to a recquired path.
path:/opt/anaconda3/pkgs/cache/9e0f62c3. json
uid:1009
gid:1010
If you feel that permissions on this path are set incorrectly, you can manually change them by executing
s sudo chown 1009:1010/opt/anaconda3/pkgs/cache/9e0f62c3. json In general, it’s not advisable to use ’ sudo conda’.
解决办法
针对单个用户
改变anaconda文件夹的权限
其中需要更改的地方,
1、1009:1010 1009是uid, 1010是gid, 这个两个数字根据报错的命令行提示更改
2、/opt/anaconda3/, 这是anaconda安装的路径,
sudo chown -R 1009:1010 /opt/anaconda3/