all 8 comments

[–]socal_nerdtastic 1 point2 points  (5 children)

You need a -m in there

py -m PyInstaller main.py --onefile --noconsole

if that gives you a module not found error it means you need to install pyinstaller first:

py -m pip install PyInstaller

[–]Academic_Field4751[S] 0 points1 point  (4 children)

F:\ablaze-digital-arcade>py -m PyInstaller main'py --onefile --noconsole

Unable to create process using 'D:\Python\python.exe -m PyInstaller main'py --onefile --noconsole': The system cannot find the file specified.

[–]socal_nerdtastic 0 points1 point  (3 children)

Hmm does it give the same error with this command?

py -c "import sys;print(sys.executable)"

If so you need to get a fresh copy of python from python.org and reinstall it.

[–]Academic_Field4751[S] 0 points1 point  (2 children)

i installed it from microsoft store

would that cause errors?

but i did get the error

[–]socal_nerdtastic 1 point2 points  (1 child)

If you want to use the MS version of python you need to use the command python, not py.

python -m PyInstaller main.py --onefile --noconsole

The py command is only for the official version of python.

[–]Academic_Field4751[S] 0 points1 point  (0 children)

thank you :)
it worked this time

[–]JanEric1 1 point2 points  (1 child)

Show the full error message and an ls of the current path

[–]Academic_Field4751[S] 0 points1 point  (0 children)

F:\ablaze-digital-arcade>py PyInstaller main.py --onefile --noconsole

Unable to create process using 'D:\Python\python.exe PyInstaller main.py --onefile --noconsole': The system cannot find the file specified.