title: import _tkinter # If this fails your Python may not be configured for Tk
body: <p>Some initial information:
  I have windows 10 on my computer and all programs are 64-bit versions.</p>
  
  <p>I'm writting a game in python (3.6.1) using tkinter and now I would like to convert it to .exe. I have used cx_freeze (5.0.1) and it made the build, but when I try to open the game a window opens and then closes immediately. Therefore I tried to open it via cmd and the following error pops up:</p>
  
  <pre><code>File "sliks.py", line 1, in &lt;module&gt;
  File "C:\Users\Tinka\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 36, in &lt;module&gt;
  import _tkinter # If this fails your Python may not be configured for Tk
  ImportError: DLL load failed: The specified module could not be found.
  </code></pre>
  
  <p>I have checked tkinter support as it says here:
  <a href="https://wiki.python.org/moin/TkInter" rel="noreferrer">https://wiki.python.org/moin/TkInter</a>
  and no error occurs.</p>
  
  <p>Also I have tried to install tk-dev with pip as it says in some answers on this subject but nothing happens as I get this message:</p>
  
  <pre><code>C:\WINDOWS\system32&gt;pip install tk-dev
  Collecting tk-dev
  Could not find a version that satisfies the requirement tk-dev (from versions: )
  No matching distribution found for tk-dev
  </code></pre>
  
  <p>I never had any python 2.x on my computer so there are no mixed up libraries as in this case: <a href="https://stackoverflow.com/questions/8724729/importerror-dll-load-failed-importing-tkinter">ImportError DLL load failed importing _tkinter</a></p>
  
  <p>Here is my setup.py file I have used for cx_freeze in case there is something wrong with that:</p>
  
  <pre><code>from cx_Freeze import setup, Executable
  import os
  
  os.environ['TCL_LIBRARY'] = r'C:\Users\Tinka\AppData\Local\Programs\Python\Python36\tcl\tcl8.6'
  os.environ['TK_LIBRARY'] = r'C:\Users\Tinka\AppData\Local\Programs\Python\Python36\tcl\tk8.6'
  
  base = None
  
  setup(
      name = "Six",
      version = "0.1",
      options = {"build_exe": {"packages": ["tkinter"]}},
      executables = [Executable("sliks.py", base=base)]
      )
  </code></pre>
  
  <p>Any ideas what could be the problem? I know there are many opened questions on this subject, but I have tried most of the solutions and had no luck.</p>