matplotlib error - no module named tkinter

后端 未结 16 1653
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 04:10

I tried to use the matplotlib package via Pycharm IDE on windows 10. when I run this code:

from matplotlib import pyplot

I get the followin

16条回答
  •  無奈伤痛
    2020-11-28 04:30

    For Windows users, there's no need to download the installer again. Just do the following:

    1. Go to start menu, type Apps & features,
    2. Search for "python" in the search box,
    3. Select the Python version (e.g. Python 3.8.3rc1(32-bit)) and click Modify,
    4. On the Modify Setup page click Modify,
    5. Tick td/tk and IDLE checkbox (which installs tkinter) and click next.

    Wait for installation and you're done.

提交回复
热议问题