关于conda管理包时出现Permission denied的问题
最近在使用conda对env中的包进行管理,可是当使用命令
conda install -n envname scrapy
conda update -n envname setuptools
出现了如下的问题,问题如下
ERROR conda.core.link:_execute(481): An error occurred while uninstalling package 'defaults::setuptools-39.0.1-py36_0'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
在借鉴了其他博主的文章后,我将anaconda的权限加入我的用户及其用户组中,代码如下:
sudo chown -R hades@ubuntu:hades@ubuntu /home/hades/anaconda3
再次运行上面下载/更新命令,结果一切顺利:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done