我为 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/