如何修复 conda 更新 conda 权限错误 [英] How to fix conda update conda permission error

查看:95
本文介绍了如何修复 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: command not found.我不知道从这里去哪里.

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆