在环境中安装spyder

时间:2020-07-07 22:46:02

标签: python anaconda conda spyder virtual-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

()

有人知道如何克服吗?

1 个答案:

答案 0 :(得分:0)

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

这是由PATH中缺少变量引起的conda问题 尝试安装依赖Qt的软件包,例如Spyder(您 可以看到问题here)。

在此之后,您需要使用以下命令设置PATH env变量 如here所述正确的值。缺少的可执行文件(chcp)应该 位于C:\ Windows \ System32 \ chcp.com,因此可能在您的路径中 %SystemRoot%\ system32字符串丢失。