ubuntu conda install ERROR missing write permission错误

报错:

ondaIOError: Missing write permissions in: /usr/local/anaconda3
#
# You don't appear to have the necessary permissions to install packages
# into the install area '/usr/local/anaconda3'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone="/usr/local/anaconda3"

例子:

ubuntu conda install ERROR missing write permission错误

 

 

 

问题在于 anaconda所在文件夹只有root 才有权限,而 sudo 对于conda没用,

ubuntu conda install ERROR missing write permission错误

解决方案是修改文件夹权限给当前用户

sudo chown -R usr foldername

ubuntu conda install ERROR missing write permission错误

比如我的用户名是 adrianna, anaconda 的安装目录是/usr/local/anaconda3:

adrianna@adrianna-ubuntu:~$ sudo chown -R adrianna /usr/local/anaconda3

参考文献:https://blog.csdn.net/u012223913/article/details/76532776

上一篇:Anaconda3配置Notebook的默认打开位置


下一篇:win10 下的anaconda3 安装(2019.06.04最新)