有办法消除 VSCode 上的错误 "Unable to import XXX" 吗?
There is a way to eliminate the errors "Unable to import XXX" on VSCode?
我正在使用 VSCode 编写我的 Python 代码,甚至代码 运行 正确地 pylint 报告错误:"Unable to import xxx"
见下图!我怎样才能避免呢?
问题已解决...在我的情况下,我只需要设置另一个解释器。只需在 vscode window 上按 F1 并键入 Python:Select 您将得到正确的提示
我正在使用 VSCode 编写我的 Python 代码,甚至代码 运行 正确地 pylint 报告错误:"Unable to import xxx"
见下图!我怎样才能避免呢?
问题已解决...在我的情况下,我只需要设置另一个解释器。只需在 vscode window 上按 F1 并键入 Python:Select 您将得到正确的提示