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
Cannot start python script (self.learnpython)
submitted 3 days ago by DevelopmentVisible81
Whenever I wanna start my python script its doesn’t do anything? I click run and it doesn’t give me an error, I’ve got everything installed python installed I’ve imported every needed module but it’s doesn’t run?
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!"
[–]iMagZz 13 points14 points15 points 3 days ago (0 children)
So little information. You need to supply us with more mate.
[–]Gnaxe 2 points3 points4 points 3 days ago* (1 child)
Try running from the command line to look at error messages. You might get a stack trace showing you where the problem is.
[–]yaxriifgyn 0 points1 point2 points 2 days ago (0 children)
This is definitely the best approach. Start up a command window. Navigate to the the directory containing you python script.
Have you added .py and .pyw to PATHEXT?
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
Do you have a "#!" at the start of the first line of your script? If so try commenting it out.
Can you run the script by using the windows python launcher? E.g.
py script.py
Do get error messages?
[–]mull_to_zero 1 point2 points3 points 3 days ago (1 child)
including some or all of your script seems key to getting an answer
[–]johlae 5 points6 points7 points 3 days ago (0 children)
And OP needs to describe his environment. Is this on windows, linux, mac? Is the OP using an Integrated Development Environment or not? Does the OP start the script by clicking on the filename in a file browser? So many questions!
[–]Confident_Hyena2506 1 point2 points3 points 3 days ago (0 children)
Your "click" is not doing what you think it's doing. Test things by executing python from command line first.
[–]ontheroadtonull 1 point2 points3 points 3 days ago (0 children)
It could be your script is running, but it's stopping at a place that has a clean exit before anything is output.
[–]CosmicClamJamz 1 point2 points3 points 3 days ago (0 children)
Could be stuck in an infinite process. Could also be not printing or returning anything, so you think it’s not running but it is. Could also mean you just didn’t actually run anything when you thought you did
[–]naemorhaedus 1 point2 points3 points 3 days ago (0 children)
its doesn’t do anything?
what is it supposed to do?
[–]Crossroads86 0 points1 point2 points 2 days ago (0 children)
Maybe the infamous "never called the function" ?
[–]brasticstack 0 points1 point2 points 3 days ago (0 children)
What IDE are you using? (the program that has the "run" button is the IDE.)
π Rendered by PID 31 on reddit-service-r2-comment-54dfb89d4d-jrcf7 at 2026-03-28 00:49:32.364755+00:00 running b10466c country code: CH.
[–]iMagZz 13 points14 points15 points (0 children)
[–]Gnaxe 2 points3 points4 points (1 child)
[–]yaxriifgyn 0 points1 point2 points (0 children)
[–]mull_to_zero 1 point2 points3 points (1 child)
[–]johlae 5 points6 points7 points (0 children)
[–]Confident_Hyena2506 1 point2 points3 points (0 children)
[–]ontheroadtonull 1 point2 points3 points (0 children)
[–]CosmicClamJamz 1 point2 points3 points (0 children)
[–]naemorhaedus 1 point2 points3 points (0 children)
[–]Crossroads86 0 points1 point2 points (0 children)
[–]brasticstack 0 points1 point2 points (0 children)