The package name has an uppercase 'P' and 'I'
xxxxxxxxxx
python -m PyInstaller your_script.py
https://stackoverflow.com/questions/44740792/pyinstaller-no-module-named-pyinstaller
xxxxxxxxxx
# After using pyinstaller, program cannot find an imported module
# Just replace "module_named" with your missing module:
pyinstaller --hidden-import module_named file.py