如何在 Spyder 上安装 spyder-unittest IDE

How to install spyder-unittest on Spyder IDE

我根据https://github.com/spyder-ide/spyder-unittestconda install -c spyder-ide spyder-unittest,但我一直在做

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: ...

我做错了什么?抱歉,这看起来很简单,但我刚开始使用 Anaconda 和 Spyder。

根据上面的评论,spyder-unittest 目前与 Spyder 5 不兼容。解决方案:conda uninstall spyderconda install spyder=4.2.5。只是用 conda install spyder=4.2.5 降级是行不通的。在那之后 conda install -c spyder-ide spyder-unittest 很快就发挥了作用,预期的按钮显示在 IDE.