在安装anaconda时报错,安装miniconda报错相同:
Downloading and Extracting Packages: ...working... done
Preparing transaction: ...working... done
Executing transaction: ...working... done
ERROR conda.core.link:_execute(950): An error occurred while installing package 'defaults::anaconda_powershell_prompt-1.1.0-haa95532_0'.
Rolling back transaction: ...working... done
LinkError: post-link script failed for package defaults::anaconda_powershell_prompt-1.1.0-haa95532_0
location of failed script: C:\ProgramData\anaconda3\Scripts.anaconda_powershell_prompt-post-link.bat
==> script messages <==
==> script output <==
stdout:
stderr: 此时不应有 /F。
return code: 255
()
::error:: Failed to link extracted packages to C:\ProgramData\anaconda3!
确定conda环境变量都已删除,更新了PowerShell7,在关闭了防火墙和病毒防护后,以管理员的身份运行安装程序,并将安装位置修改为C:/conda,得到相同的报错
同时,由于anaconda没有安装,无法使用conda命令