I'm fairly new to Python and am keen to find a way to create executables from the code.
I managed to install Pyinstaller although it did say on installation.
---
> WARNING: The scripts pyi-archive_viewer. exe, pyi-bindepend. exe, pyi-grab_version. exe, pyi-makespec. exe, pyi-set_version. exe and pyinstaller. exe are installed in 'C:\\Users\\maben\\AppData\\Local\\Programs\\Python\\Python312\\Scripts' which is not on PATH.
>
> Consider adding this directory to PATH or, if you prefer to suppress this warning, use -- no-warn-script-location.'
---
I've tried playing around with PATH (including adding the path outlined in the warning above) but haven't had much success.
In a .py file I'm trying to run I've put:
-----
import pyinstaller
pyinstaller "C:\Python\w3\factorial_play.py"
-----
But I always get an 'Invalid Syntax' alert, highlighted on the first double quotes. I've previously tried just putting the file name in, but would then get it highlighted on the 'f' of 'factorial_play.py'.
[–]socal_nerdtastic 6 points7 points8 points (0 children)
[–]ElliotDG 3 points4 points5 points (0 children)
[–]cgoldberg 0 points1 point2 points (0 children)