无法更新anaconda

时间:2019-06-19 13:30:15

标签: python anaconda

在Windows 7 Professional上尝试更新conda时出现错误:“ PermissionError(13,'Access is否认')”,因此无法安装许多其他软件包,例如spacy,tensorflow,librosa等。

(base) C:\Users\companyadmin>conda update conda
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3

  added / updated specs:
    - conda


The following packages will be UPDATED:

    conda: 4.4.10-py36_0 --> 4.6.14-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 packag
e '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')

2 个答案:

答案 0 :(得分:1)

考虑要安装的系统不是您的个人系统,而是属于您所工作的公司。

因此,公司已将程序安装限制为仅限于certian文件夹中的员工,例如c:\ programdata \或c:\ program文件 安装/卸载那里需要管理员权限。

因此您需要管理员权限才能在此处安装程序,即以管理员模式运行命令

如何解决此问题,

install/save the anaconda in seperate folder ie in some folder in system you have created
then you can update the anaconda in your system

答案 1 :(得分:1)

sudo env "PATH=$PATH" conda update conda (ubuntu)

或以管理员身份运行anaconda promt,然后(对于Windows):

conda update conda