python 笔记本使用 VS Code 和 miniconda 的问题

Problems with using VS Code and miniconda for python notebooks

我有一个要用于 python 笔记本的 conda 基础环境。在这个基础环境中,我已经安装了我需要的所有包。但是,当我通过 vscode 启动 jupyter notebook 时,它总是给我一个 ModuleNotFound 错误:

我已经确定我的 python 解释器(左下角)是 conda base 以及右上角的解释器:

但错误永远不会消失。

奇怪的是,当我在 conda 基础环境中从终端启动 jupyter lab 时,一切都按预期正常工作。什么可能导致此错误?

我卸载了 miniconda3 并安装了 anaconda。它神奇地解决了这个问题。我喜欢编码。