【问题标题】:Install spyder inside environment在环境中安装 spyder
【发布时间】:2020-10-28 06:52:03
【问题描述】:

我正在尝试使用命令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

()

有人知道如何克服吗?

【问题讨论】:

标签: python anaconda conda spyder virtual-environment


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 2022-01-02
    • 2019-02-01
    • 2023-03-29
    • 2021-07-30
    • 2018-08-30
    • 2018-08-15
    • 2018-11-30
    • 1970-01-01
    • 2019-01-04
    相关资源
    最近更新 更多