【发布时间】:2021-08-06 02:27:54
【问题描述】:
嗨,当我安装 matplotlib 时,我在 Windows 10 上的 vs code 中安装了 matplotlib,但是当我运行一个简单的程序时,我得到了这个 import tkinter as tk.py",第 2 行,在 将 matplotlib.pyplot 导入为 plt ModuleNotFoundError:没有名为“matplotlib”的模块
【问题讨论】:
-
首先你的问题不清楚,需要编辑。请修改您的问题。但是基于错误,matplotlib 丢失了。你安装了matplotlib吗?使用
pip install matplotlib -
@m.1.cosacak 是的,我必须卸载 matplotlib,如果是,我如何使用 Visual Studio 代码
标签: python