python-2.7 - 由于 Windows 程序文件权限,conda 更新 conda 无法正常工作

标签 python-2.7 anaconda

我为 Windows 10 机器上的所有用户安装了 Anaconda for Python 2.7。当我尝试通过 conda update conda 更新它时我收到以下错误:

# You don't appear to have the necessary permissions to update packages
# into the install area 'C:\Program Files\Anaconda2'.
# However you can clone this environment into your home directory and
# then make changes to it.
# This may be done using the command:
#
# $ conda create -n my_root --clone=C:\Program Files\Anaconda2

然而,当我尝试将其克隆到我的主目录时,出现错误:
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Anaconda2\\pkgs\\menuinst-1.4.1-py27_0.tmp'

有没有办法解决这个问题?我一直在谷歌搜索,但还没有找到明确的解决方案。

最佳答案

转到开始手册,找到 Anaconda 命令提示符。右键单击该图标并以管理员身份运行它(如果您是)。然后像往常一样进行 conda 更新。

关于python-2.7 - 由于 Windows 程序文件权限,conda 更新 conda 无法正常工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41432630/

相关文章:

python - Tanh-sinh求积数值积分法收敛到错误值

python - 如果 set 为空,则返回 bool 值

python - 任何 conda 或 pip 操作都会在 Windows 10 中出现 SSL 错误

python - 如何在windows中安装pytorch?

python - 从 python 2.7 中的列表中删除每个第 n 个元素

python - 如何检查不变性

python - 将字节转换为 Int 时出错 (Python 2.7)

anaconda - 无法满足的错误 : The following specifications were found to be incompatible with each other:

python - 运行 .exe 文件 Python 2.7 时 Pyinstaller Intel MKL fatal error

python 应用程序 - xcb 插件失败