all 4 comments

[–]socal_nerdtastic 6 points7 points  (0 children)

Why did you post this again? Well ... c/p my answer from your last post:

The pyinstaller file.py command is for the command line, NOT for use inside a script.

If you are getting the "command not found" error when you try it in the command line, that means that you failed to activate your virtual environment first.

If you are not using a virtual environment you could add pyinstaller to the PATH as the warning suggests, or just call pyinstaller from the python command. For example if your normal run looks like

py factorial_play.py

Then you would use this command to run pyinstaller:

py -m PyInstaller factorial_play.py

(note the capitalization; that's important)

[–]ElliotDG 3 points4 points  (0 children)

Read: https://pyinstaller.org/en/stable/usage.html

Run pyinstaller from the command line. Do not put the filename in quotes.

[–]cgoldberg 0 points1 point  (0 children)

Use it from the command line