在 windows10 上安装 pytorch/tensorflow 时访问被拒绝

Access Denied while installing pytorch/tensorflow on windows10

我尝试使用以下命令在 anaconda 提示符下安装 Tensorflow:conda install tensorflow 我收到以下错误消息:

Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::scipy-1.1.0-py36h672f292_0'.
PermissionError(13, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
PermissionError(13, 'Access is denied')

类似地,当我尝试通过 conda install -c pytorch pytorch 安装 pytorch 时:

Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::conda-4.5.4-py36_0'.
PermissionError(13, 'Access is denied')
Attempting to roll back.
Rolling back transaction: done
PermissionError(13, 'Access is denied')

我检查并 运行 那些具有管理员权限的命令。 如何解决这个问题并在conda中安装tensorflow?