"Failed to execute script pyi_rth_pkgres" error ? 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