【问题标题】:Python3. Importing matplotlib.pyplot is not working [duplicate]蟒蛇3。导入 matplotlib.pyplot 不起作用[重复]
【发布时间】:2019-02-14 23:34:26
【问题描述】:

我刚刚完成了有关 Python 数据科学的在线课程。 我想在 Pycharm Edu 中自己编写一些代码。我以前做过,一切正常。我通过 Pycharm 和 Linux Mint 中的控制台下载了“numpy”和“matplotlib”。当我导入 numpy 并导入 matplotlib (并且什么都不写)时,我的程序运行正常,但是当我写 “import matplotlib.pyplot as plt”它不起作用。enter image description here Screen: https://snag.gy/CPx9WG.jpg

【问题讨论】:

标签: python matplotlib


【解决方案1】:

你必须安装tkinter

apt-get install python-tk

在此处找到的文档:Tkinter

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-10
    相关资源
    最近更新 更多