在环境中安装 spyder

Install spyder inside environment

我正在尝试使用命令 conda install spyder 在环境中安装 spyder,但出现错误:

> ERROR conda.core.link:_execute(700): An error occurred while
> installing package 'defaults::qt-5.9.7-vc14h73c81de_0'. Rolling back
> transaction: done

LinkError: post-link script failed for package defaults::qt-5.9.7-vc14h73c81de_0
location of failed script: C:\ProgramData\Anaconda3\envs\SimPEG1401\Scripts\.qt-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:         1 file(s) copied.

stderr: 'chcp' is not recognized as an internal or external command,
operable program or batch file.
'chcp' is not recognized as an internal or external command,
operable program or batch file.
'chcp' is not recognized as an internal or external command,
operable program or batch file.

return code: 1

()

有人知道如何克服吗?

我从 Spyder 组得到了这个答案:

this is a conda issue caused by a missing variable in the PATH when trying to install packages that depend on Qt, for example Spyder (you can see the issue here).

Following this you will need to setup your PATH env variable with the correct values as explained here. The missing executable (chcp) should be located at C:\Windows\System32\chcp.com so probably in your path the %SystemRoot%\system32 string is missing.