【发布时间】:2023-03-16 00:55:01
【问题描述】:
我正在使用 pyzo 来运行我的 python 脚本。但是我觉得有必要切换到 Atom 代码编辑器。我可以毫无问题地运行我的 python 脚本。
在某一时刻,我需要使用库 matplotlib。在 pyzo 我会这样做:
import matplotlib.pyplot as plt
错误信息:
Traceback(最近一次调用最后一次): 文件“C:\Users\ivanl\Desktop\python trade\matplotlib.py”,第 1 行,在 将 matplotlib.pyplot 导入为 plt 文件“C:\Users\ivanl\Desktop\python trade\matplotlib.py”,第 1 行,在 将 matplotlib.pyplot 导入为 plt ImportError:没有名为“matplotlib.pyplot”的模块; 'matplotlib' 不是一个包
我应该在哪里寻找安装 matplotlib?为什么它在 pyzo 而不是 atom 上工作?
【问题讨论】:
标签: python matplotlib atom-editor