Pyinstaller failed to execute script pyi_rth_pkgres by pyinstaller --hidden-import=pkg_resources.py2_warn --onefile example.pypyinstaller --hidden-import=pkg_resources.py2_warn --onefile example.py Please follow and like us: