简体   繁体   English

Errno 13 更新 conda 时权限被拒绝

[英]Errno 13 Permission denied when updating conda

I'm trying to update Anaconda using conda update --all .我正在尝试使用conda update --all更新 Anaconda。

I receive the following warning:我收到以下警告:

Warning: 2 possible package resolutions (only showing differing packages):
  - anaconda::navigator-updater-0.2.1-py36_0
  - defaults::navigator-updater-0.2.1-py36done

Then it begins:然后它开始:

## Package Plan ##

  environment location: /Users/me/anaconda3

...Followed by all sorts of good things. ...随之而来的是各种美好的事物。 The transaction is then prepared, verified and executed, after which I get the following errors:然后准备、验证和执行交易,之后我收到以下错误:

ERROR conda.core.link:_execute(700): An error occurred while uninstalling package 'https://repo.continuum.io/pkgs/main/osx-64/xlrd-1.1.0-py36h336f4a2_1.tar.bz2::xlrd-1.1.0-py36h336f4a2_1'.
Rolling back transaction: done

[Errno 13] Permission denied: '/Users/me/anaconda3/lib/python3.6/site-packages/xlrd/__init__.py' -> '/Users/me/anaconda3/lib/python3.6/site-packages/xlrd/__init__.py.c~'
()

Being the newer coder that I am, I have no idea about the environment or what it takes to update this beyond monkey-typing in what I've been told to do.作为我这个较新的编码员,我不知道环境或除了猴子打字我被告知要做的事情之外,还需要什么来更新它。 What the heck do these mean and how do I solve them?这些到底是什么意思,我该如何解决? I would imagine that updating would be simple, as it is going back to the folder that it came from, so why is it saying there there is an Error 13 which, as my research seems to indicate, is an admin privileges issue?我想更新会很简单,因为它会返回到它来自的文件夹,那么为什么它说有一个错误 13,正如我的研究表明的那样,这是一个管理员权限问题? (I am admin on my machine, using a Mac with interactive shell zsh .) (我在我的机器上是管理员,使用带有交互式 shell zsh的 Mac。)

So it seems like the version of conda that you are using was prone to these errors.因此,您使用的conda版本似乎容易出现这些错误。 Searching it up brings up a multitude of similar errors and the common solution is to always update conda , just like you tried.搜索它会出现许多类似的错误,常见的解决方案是始终更新conda ,就像您尝试过的那样。

From @soapy1 comment from here , states that:来自此处的@soapy1 评论指出:

Looks like this is fixed on master, it should be resolved in the next release of conda看起来这是在master上修复的,应该在conda的下一个版本中解决

My advice would be, if possible, uninstall and install anaconda.我的建议是,如果可能,卸载并安装 anaconda。 This will install with the latest packages and the error shouldn't persist.这将使用最新的软件包进行安装,并且错误不会持续存在。 You should follow the documentation on doing this safely.您应该遵循有关安全执行此操作的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM