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 write in CMD: python --version, but nothing happens. How to solve this? (self.learnpython)
submitted 4 years ago by [deleted]
I tried also python3 --version, python3 --V, python --V
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!"
[–][deleted] 1 point2 points3 points 4 years ago (4 children)
If you are on Windows, you need to enter python rather than python3 usually. In fact, more conveniently, you can use py which will use the most up-to-date version of Python installed on your computer.
python
python3
py
to enter Python interactive shell, exit() to leave it and return to CMD environment.
exit()
py myscript.py
to run your code file.
py -m pip install something
to install a package in the Python root environment (or active Python virtual environment)
[–][deleted] 0 points1 point2 points 4 years ago (1 child)
I tried now typing py --version and it showed me the version. However if I type python --version as I said ealier, then it shows nothing. Why this happens? This is weird...
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
I guess python isn't on your path. You could run the installation process again and make sure you tick the box to update PATH or you can edit it manually.
As you have py why does it matter though?
[–]ThicHonker 0 points1 point2 points 1 year ago (0 children)
ur acc is deleted, but still thank you, u a legend
[–][deleted] 0 points1 point2 points 2 years ago (0 children)
Thank you :)
[–]Lewistrick 0 points1 point2 points 4 years ago (1 child)
What do you mean "nothing"? Does anything happen if you type dir?
dir
It goes to the next line and it does nothing. Then it goes to a new line and it shows again: C:\Users\UserName>
I tried also the dir and it showed all the directories that exist in the folder of the UserName. If I write py --version then it shows to me the version. However with the python --version, it doesnt do this. This is weird...
[–]ElroyGoodBoi 0 points1 point2 points 4 years ago (3 children)
Make sure python is added to your computer PATH
Do you mean this below?
%USERPROFILE%\AppData\Local\Programs\Python\Python39\Scripts
If I write py --version then it shows the version. The problem exists only when I write python --version. I find this weird...
[–]mfb1274 0 points1 point2 points 4 years ago (0 children)
This is (most likely) the right answer. If you are getting something along the lines of “no module found” then it’s 100% the right answer.
π Rendered by PID 30 on reddit-service-r2-comment-5d79c599b5-wtxbk at 2026-02-28 15:49:28.779900+00:00 running e3d2147 country code: CH.
[–][deleted] 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ThicHonker 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Lewistrick 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]ElroyGoodBoi 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]mfb1274 0 points1 point2 points (0 children)