This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempt
Extending Vikash Kumar's answer, build the application by adding the --hidden-import argument to the command.
Vikash Kumar's
--hidden-import argument to the command
For example, running the command given below worked for me.
"pyinstaller --hidden-import=pkg_resources.py2_warn example.py"
update: added missing "="