I'm trying to create an executable from a Python script using PyInstaller, but I get the following error:
30391 INFO: Loading module hook "hook-distutils.py"...
Unable to find "\AppData\Local\Programs\Thonny\Include\pyconfig.h" when
adding binary and data files.
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 .exe
file only prints some text and immediately closes the console window.
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.
I'm running PyInstaller through the system shell on Thonny. My OS is Windows 10 and my Python version is 3.6.4.