在 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?
阅读卸载 Anaconda 的文档 https://docs.anaconda.com/anaconda/install/uninstall
执行 conda 安装 anaconda-clean
然后执行 anaconda-clean --yes
然后通过步骤下载 Windows 安装程序和 运行 的 Anaconda。 https://www.anaconda.com/products/individual#windows
然后使用您尝试使用的命令重新安装 tensorflow。
如果这不起作用,您可能有 python 并发(介于内置 python 和手动安装的 python 版本之间)。
我尝试使用以下命令在 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?
阅读卸载 Anaconda 的文档 https://docs.anaconda.com/anaconda/install/uninstall
执行 conda 安装 anaconda-clean
然后执行 anaconda-clean --yes
然后通过步骤下载 Windows 安装程序和 运行 的 Anaconda。 https://www.anaconda.com/products/individual#windows
然后使用您尝试使用的命令重新安装 tensorflow。
如果这不起作用,您可能有 python 并发(介于内置 python 和手动安装的 python 版本之间)。