For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

No module named '_tkinter' in Jupyter Notebook



  • Guys I am trying to do a project on Jupyter Notebook and coming up to this error. I would really appreciate it if you can help me.

    /usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py in <module>
    34 import sys
    35
    ---> 36 import _tkinter # If this fails your Python may not be configured for Tk
    37 TclError = _tkinter.TclError
    38 from tkinter.constants import *

    ModuleNotFoundError: No module named '_tkinter'



  • You need to install Python with Tkinter support, like apt-get install python-tk


Log in to reply
 

});