错误如:'Solving environment: failed with initial frozen solve. Retrying with flexible solve' & 'unittest' 选项卡

Errors such as: 'Solving environment: failed with initial frozen solve. Retrying with flexible solve' & 'unittest' tab

我正在使用 spyder - python。我想测试我的代码。我已经关注了 pip install spyder-unittestpip install pytest。我重新启动了内核并重新启动了我的 MAC。然而,单元测试选项卡没有出现。即使我下拉 运行 也找不到 运行 单元测试。有人知道怎么做吗?

所以,我通过 运行ning 命令解决了这个问题:

conda config --set channel_priority false

然后使用命令 运行:

继续 unittest 下载

conda install -c spyder-ide spyder-unittest

第一个命令运行 conda config --set channel_priority false可能会解决其他问题,例如:

Solving environment: failed with initial frozen solve. Retrying with flexible solve

我通过执行以下操作解决了类似的问题:

conda update --all --yes
conda install -c spyder-ide spyder-unittest