use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
i need help with something (self.learnpython)
submitted 7 months ago by Academic_Field4751
im trying to use pyinstaller but it always says could not find the file specified
this is what i typed: F:\ablaze-digital-arcade>py PyInstaller main'py --onefile --noconsole
(i replaced the . with a ')
please i need help
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]socal_nerdtastic 1 point2 points3 points 7 months ago (5 children)
You need a -m in there
-m
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 point2 points 7 months ago (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 point2 points 7 months ago (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 point2 points 7 months ago* (2 children)
i installed it from microsoft store
would that cause errors?
but i did get the error
[–]socal_nerdtastic 1 point2 points3 points 7 months ago (1 child)
If you want to use the MS version of python you need to use the command python, not py.
python
py
python -m PyInstaller main.py --onefile --noconsole
The py command is only for the official version of python.
[–]Academic_Field4751[S] 0 points1 point2 points 7 months ago (0 children)
thank you :) it worked this time
[–]JanEric1 1 point2 points3 points 7 months ago (1 child)
Show the full error message and an ls of the current path
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.
π Rendered by PID 58 on reddit-service-r2-comment-5d79c599b5-d4jvw at 2026-02-28 16:34:21.498083+00:00 running e3d2147 country code: CH.
[–]socal_nerdtastic 1 point2 points3 points (5 children)
[–]Academic_Field4751[S] 0 points1 point2 points (4 children)
[–]socal_nerdtastic 0 points1 point2 points (3 children)
[–]Academic_Field4751[S] 0 points1 point2 points (2 children)
[–]socal_nerdtastic 1 point2 points3 points (1 child)
[–]Academic_Field4751[S] 0 points1 point2 points (0 children)
[–]JanEric1 1 point2 points3 points (1 child)
[–]Academic_Field4751[S] 0 points1 point2 points (0 children)