我正在尝试更新conda并获取PermissionError(13,'访问被拒绝')

时间:2018-11-10 20:00:47

标签: python anaconda conda

我想将conda,anaconda和python更新到最新版本。我执行以下命令并收到以下提示。发生了什么事,我该如何解决?感谢您的帮助

C:\Users\nabr>conda update --all
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 4.4.10
  latest version: 4.5.11

Please update conda by running

    $ conda update -n base conda



# All requested packages already installed.


C:\Users\nabr>conda update -n base conda
Solving environment: done

## Package Plan ##

  environment location: C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64

  added / updated specs:
    - conda


The following packages will be UPDATED:

    conda: 4.4.10-py36_0 --> 4.5.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, 'Access is denied')
Attempting to roll back.

Rolling back transaction: done

PermissionError(13, 'Access is denied')

1 个答案:

答案 0 :(得分:-1)

我遇到了这个问题并解决了。

以管理员身份运行Anaconda Prompt。