title: Running Tkinter on Mac
body: <p>I am an absolute newbie. I'm trying to make Python GUI for my school project so I decided to use Tkinter. When I try to import Tkinter it throws this message:</p>
  <pre><code>&gt;&gt;&gt; import tkinter
  Traceback (most recent call last):
    File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
    File &quot;/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/tkinter/__init__.py&quot;, line 36, in &lt;module&gt;
      import _tkinter # If this fails your Python may not be configured for Tk
  ModuleNotFoundError: No module named '_tkinter'
  </code></pre>
  <p>I tried to find a solution online but I couldn't figure it out (mostly didn't understand it).</p>
  <p>I read about some problem with directory in setup.py but I don't understand how to fix it. I have tkinter folder in my python3.7 folder.</p>
  <p>I don't really understand <a href="https://wiki.python.org/moin/TkInter" rel="nofollow noreferrer">these steps that I found</a>:</p>
  <blockquote>
  <p>If it fails with &quot;No module named _tkinter&quot;, your Python configuration needs to be modified to include this module (which is an extension module implemented in C). Do <strong>not</strong> edit Modules/Setup (it is out of date). You may have to install Tcl and Tk (when using RPM, install the -devel RPMs as well) and/or edit the setup.py script to point to the right locations where Tcl/Tk is installed. If you install Tcl/Tk in the default locations, simply rerunning &quot;make&quot; should build the _tkinter extension.</p>
  </blockquote>
  <p>I'm using Mac OS and use Visual Studio Code.</p>