如何修复conda更新conda权限错误 [英] How to fix conda update conda permission error
本文介绍了如何修复conda更新conda权限错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
~$ conda update conda
Solving environment: done
## Package Plan ##
environment location: /home/david/anaconda3
added / updated specs:
- conda
The following packages will be UPDATED:
conda: 4.4.10-py36_0 --> 4.4.11-py36_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(481): An error occurred while uninstalling package 'defaults::conda-4.4.10-py36_0'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
PermissionError(13, 'Permission denied')
我正在尝试在virtualbox ubuntu 16.04上更新conda,出现此权限错误.我尝试了 sudo conda update conda
,但是它返回了 sudo:conda:找不到命令
.我不确定从这里要去哪里.
I was trying to update conda on virtualbox ubuntu 16.04 and this permission error came up. I tried sudo conda update conda
but it returns sudo: conda: command not found
. I'm not sure where to go from here.
推荐答案
我遇到了相同的错误,并通过以下方法解决了该问题:
I got the same error and solved it by this:
sudo env "PATH=$PATH" conda update conda
这篇关于如何修复conda更新conda权限错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文