gpt4 book ai didi

linux - 如何修复 conda 更新 conda 权限错误

转载 作者:行者123 更新时间:2023-12-02 20:12:25 24 4
gpt4 key购买 nike

~$ 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:找不到命令。我不知道从这里该去哪里。

最佳答案

我遇到了同样的错误并通过以下方式解决了它:

sudo env "PATH=$PATH" conda update conda

关于linux - 如何修复 conda 更新 conda 权限错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49181799/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com