0

I have already tried

   pyinstaller --onefile main.py

And later, after adding image path to datas[] in main.spec

   pyinstaller main.spec

I get this:

Unable to find "/usr/include/python3.6m/pyconfig.h" when adding binary and data files.This would mean your Python installation doesn't
come with proper library files. This usually happens by missing development
package, or unsuitable build parameters of Python installation.
Barmar
  • 741,623
  • 53
  • 500
  • 612
kjtn99
  • 51
  • 1
  • 8
  • Maybe try [this](https://pypi.org/project/auto-py-to-exe/) instead it has the option to get other files. – Souhailhimself Sep 14 '20 at 21:04
  • `pyconfig.h` is header file in C/C++ code and you may have to install source code of `Python` (or at least header files). On Ubuntu it could be `apt install python-dev` or `apt install python3-dev` – furas Sep 15 '20 at 10:54

0 Answers0