How to Solve NameError: name 'collect_all' is not defined -- PyInstaller
Solution: Import the 'collect_all' module
To Solve the error, add the following line to the top of your code.
from PyInstaller.utils.hooks import collect_all
For more information:
Python PyInstaller collect_all