title: Pyinstaller failing because pyconfig.h not found on Windows
body: <p>I'm trying to create an executable from a Python script using PyInstaller, but I get the following error:</p>
  
  <pre><code>30391 INFO: Loading module hook "hook-distutils.py"...
  Unable to find "\AppData\Local\Programs\Thonny\Include\pyconfig.h" when 
  adding binary and data files.
  </code></pre>
  
  <p>I could only find instances of people having this problem on Linux, but I'm on Windows. I tried adding an empty file called pyconfig.h to the given file path. This allowed PyInstaller to complete, but the resulting <code>.exe</code> file only prints some text and immediately closes the console window.</p>
  
  <p>I successfully created an executable from another script that uses all the same packages aside from pandas, so I believe that might be the problem.</p>
  
  <p>I'm running PyInstaller through the system shell on Thonny. My OS is Windows 10 and my Python version is 3.6.4.</p>