reference:
https://askubuntu.com/questions/726184/missing-write-permissions-in-home-user-anaconda2
报错:
复制代码
1
2
3
4
5
6
7
8
9
10
11
CondaIOError: 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"
问题在于 anaconda所在文件夹只有root 才有权限,而 sudo 对于conda没用,解决方案是修改文件夹权限给当前用户
复制代码
1
sudo chown -R usr foldername
比如我的用户名是 adrianna, anaconda 的安装目录是/usr/local/anaconda3:
复制代码
1
2
adrianna@adrianna-ubuntu:~$ sudo chown -R adrianna /usr/local/anaconda3
最后
以上就是单身樱桃最近收集整理的关于ubuntu conda install ERROR missing write permission错误的全部内容,更多相关ubuntu内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复