so I'm trying to export this .py as an exe using pyinstaller. I have found it in path with cmd :
C:\Users\me>path
PATH=C:\Users\me\AppData\Local\Programs\Python\Python39\Scripts\pyinstaller.exe
however, when I use this command:
C:\Users\me\PycharmProjects\Rickroll>pyinstaller --onefile main.py
I get the message
'pyinstaller' is not recognized as an internal or external command,
operable program or batch file.
please can you help me understand why?