我已经尝试过
pyinstaller --onefile main.py
然后,在将图像路径添加到main.spec中的data []之后
pyinstaller main.spec
我明白了:
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.