title: Exe file created using pyinstaller shuts immediately when executing
body: <p>I've tried to create an executable file using pyinstaller (python 3.6) I've tried to to do this on windows 10 using(also python 3.5) py2exe, and freeze(something), but only pyinstaller was "brave" enough to create an exe file.</p>
  
  <p>When I was opening the file.py through command prompt - no problem occured. But when I was trying to execute the file.exe - there is showing up a black window like a command prompt, and suddenly it disappears, while the file.exe is not executing.
  While creating an exe.file I had few warnings in command prompt:</p>
  
  <pre><code>12914 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tk86t.dll
  12986 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tk86t.dll
  13141 WARNING: lib not found: api-ms-win-crt-string-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13210 WARNING: lib not found: api-ms-win-crt-time-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13284 WARNING: lib not found: api-ms-win-crt-math-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13357 WARNING: lib not found: api-ms-win-crt-runtime-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13432 WARNING: lib not found: api-ms-win-crt-stdio-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13505 WARNING: lib not found: api-ms-win-crt-heap-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13576 WARNING: lib not found: api-ms-win-crt-environment-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13646 WARNING: lib not found: api-ms-win-crt-convert-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  13725 WARNING: lib not found: api-ms-win-crt-utility-l1-1-0.dll dependency of c:\users\krzys\appdata\local\programs\python\python36-32\DLLs\tcl86t.dll
  </code></pre>
  
  <p>and on and on and on...
  but finally in the end I had this info:</p>
  
  <pre><code>15204 INFO: checking COLLECT
  15204 INFO: Building COLLECT because out00-COLLECT.toc is non existent
  15206 INFO: Building COLLECT out00-COLLECT.toc
  21221 INFO: Building COLLECT out00-COLLECT.toc completed successfully.
  </code></pre>
  
  <p>Here is my code - a little bit long
  <a href="https://codepaste.net/o53jx9" rel="nofollow noreferrer">https://codepaste.net/o53jx9</a></p>
  
  <p>This is my first time trying to create an exe file</p>