【问题标题】:VSCode can't find the module I've just installedVSCode 找不到我刚安装的模块
【发布时间】:2021-04-28 00:32:21
【问题描述】:

我刚刚安装了一个 Python 模块,但 VSCode 似乎找不到它。我已经更改了我的 Python 解释器,但它不起作用:

我的代码在终端和 PyCharm 中运行良好,但是当我在 VScode 中运行时,它会抛出错误:

如果你能帮助我,我将不胜感激。

【问题讨论】:

    标签: macos visual-studio-code terminal module python-3.9


    【解决方案1】:

    也许您只是在虚拟环境之外使用 Python 解释器?

    尝试单击左下角的解释器并检查您的环境中的解释器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-06-19
      • 2011-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-07-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多