Pyright,在 Neovim 中报告缺少导入错误

问题描述

我收到此错误,这是没有意义的,因为已安装库,并且选择了正确的 Python 解释器路径。我不知道问题出在哪里。

enter image description here

解决方法

您可以从 :CocCommand workspace.showOutput Pyright 获取使用的 Python 路径,看起来 Pyright 使用了错误的 Python。