fatal error detected failed to execute script pyi_rth_pkgres code example
Example: pyinstaller failed to execute script pyi_rth_pkgres
pyinstaller --hidden-import=pkg_resources.py2_warn --onefile example.py
pyinstaller --hidden-import=pkg_resources.py2_warn --onefile example.py