title: install tkinter for python 3.7.3 in Ubuntu 18.04
body: <p>When I import tinker in python 3.7.3 on Ubuntu 18.04:</p>
  
  <pre><code>&gt;&gt;&gt; import tkinter
  </code></pre>
  
  <p>I got:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/usr/local/lib/python3.7/tkinter/__init__.py", 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>Then I install tk using both of the following:</p>
  
  <pre><code>sudo apt-get install python3-tk
  </code></pre>
  
  <p>It didn't work.</p>
  
  <p>I also did all the things in <a href="https://stackoverflow.com/questions/6084416/tkinter-module-not-found-on-ubuntu">Tkinter module not found on Ubuntu</a>, still didn't work.
  I noticed that when I do:</p>
  
  <pre><code>sudo apt-get install python3.7-tk
  </code></pre>
  
  <p>It says:</p>
  
  <pre><code>Note, selecting 'python3-tk' instead of 'python3.7-tk'
  python3-tk is already the newest version (3.6.9-1~18.04).
  </code></pre>
  
  <p>Is tk automatically installed under python 3.6.9? How can I fix this?</p>
  
  <p>I also saw a solution from <a href="https://wiki.python.org/moin/TkInter" rel="nofollow noreferrer">https://wiki.python.org/moin/TkInter</a>:</p>
  
  <blockquote>
    <p>If it fails with "No module named _tkinter", 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 "make" should build the _tkinter extension.</p>
  </blockquote>
  
  <p>Could someone explain to do how to do the steps mentioned in this paragraph?</p>