WinPython Spyder 在虚拟环境中看不到 spyder-kernels

WinPython Spyder can't see spyder-kernels in virtual environment

我已经安装了 WinPython 并想使用 Spyder。我使用 pip 和虚拟环境。我已按照此处 modular approach 的说明进行操作。一切正常,直到最后一条指令 "Start a new IPython console (in Spyder). All packages installed in your venv environment should be available there.".

出现错误Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 1.9.0 and < 1.10.0). Without this module is not possible for Spyder to create a console for you.

但是我在我的 venv 中安装了 spyder-kernals,我可以在那里看到它们,我设置了安装在 venv 中的 python 的路径,一切都应该有效,但它没有!

有什么想法吗?

您可能需要询问 "C.A.M. Gerlach" 他是否有关于该程序的最新消息:Spyder 在 Spyder-4 中有所改进。

我按照建议询问了 CAM Gerlach,他很快就发现了我的错误。 modular approach 处的说明是正确的,除了他们说的 pip install spyder-kernels==0.* 是我按字面意思理解的。事实上,根据错误消息,您需要使用更高版本,所以我使用了 pip install spyder-kernels==1.10 并修复了它。