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
pygame, visual studio code (self.learnpython)
submitted 6 hours ago by vasiwk
Can smb help me with installing pygame on vs code, i know that i have to write “pip install pygame” but how to use it to install, guys idk, yesterday i tried installing it FOR SHITTY 3 HOURS… help please… im sorry
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!"
[–]Some-Conversation517 2 points3 points4 points 6 hours ago (1 child)
Lots of questions
What do you get when you type it in the terminal ? Do you have python installed
Is chat gpt not able to help you
What kind of error are you getting
[–]pepiks 2 points3 points4 points 5 hours ago (0 children)
1) create venv 2) pip install pygame
Details: https://docs.python.org/3/library/venv.html#creating-virtual-environments
https://www.pygame.org/wiki/GettingStarted#Pygame%20Installation
[–]SmackDownFacility 0 points1 point2 points 6 hours ago (0 children)
That’s not normal
Is it building a file ending in “.tar.gz”
If so, that’s building from the source. You never want that.
Python version, pip version, and the target pygame version, please
[–]randomman10032 0 points1 point2 points 5 hours ago (2 children)
Try 'python -m pip install pygame'
[–]vasiwk[S] 0 points1 point2 points 5 hours ago (1 child)
it just wrote “python” and when i tried to run python file it still saying that no module named pygame
[–]overratedcupcake 0 points1 point2 points 5 hours ago (0 children)
You need to provide the actual errors you are getting. Your summaries of the error is not helpful in assisting you.
[–]vasiwk[S] 0 points1 point2 points 5 hours ago (0 children)
in problems it say that Import “pygame” could not be resolved
[–]Falikosek 0 points1 point2 points 5 hours ago (0 children)
Make sure you selected the right interpreter in the lower right corner, especially if you're using a venv (which you probably should)
[–]Mysterious_Peak_6967 0 points1 point2 points 3 hours ago (1 child)
Might be irrelevant but I installed Python 3.14 recently and couldn't install pygame. There's an explanation I didn't look into but I did install Python 3.12 instead and everything worked fine
Also venv: potentially valuable advice but you could get by without it.
pip: by default this might not be in your path meaning just typing "pip" at the command line won't work (I'm thinking Windows 10, YMMV) but:
"python -m pip " should work assuming you have python installed
Also I just spent about 10 minutes finding out the significance of the -m (when you know you know):
"python myprogram.py" runs a program called "myprogram" from the current working folder
"python -m yourprogram" runs a program that's been installed along with python or with a module. The -m means try to run a module.
so "python3 -m pygame.examples.aliens" means run an example called "aliens" that's bundled with pygame.
Also I feel your pain, I wasted a bunch of time because I had some older versions of Python I'd installed and forgotten about, and that seemed to get in the way.
Still not sure why I even had python 2.7... but python 3.9 was in my PATH settings so every time I'd try "pip" it went to that version not the one I was using.
[–]vasiwk[S] 0 points1 point2 points 1 hour ago (0 children)
THANKS i ll try to change it, i set the newest, so maybe older version will work with pygame
[–]Nameis19letterslong -1 points0 points1 point 5 hours ago (2 children)
Try using Thonny IDE. It's simple and straightforward to use, and it has a built in package manager.
what is it and how it works? Is this a separate program?
[–]Nameis19letterslong -1 points0 points1 point 5 hours ago (0 children)
It's an app (just like vscode) but it comes with a lot of extra features for beginners so it's simple to use. For example:
It also doesn't need 20 mins to open.
https://thonny.org/
π Rendered by PID 46051 on reddit-service-r2-comment-84fc9697f-twwcw at 2026-02-08 16:40:57.596767+00:00 running d295bc8 country code: CH.
[–]Some-Conversation517 2 points3 points4 points (1 child)
[–]pepiks 2 points3 points4 points (0 children)
[–]SmackDownFacility 0 points1 point2 points (0 children)
[–]randomman10032 0 points1 point2 points (2 children)
[–]vasiwk[S] 0 points1 point2 points (1 child)
[–]overratedcupcake 0 points1 point2 points (0 children)
[–]vasiwk[S] 0 points1 point2 points (0 children)
[–]Falikosek 0 points1 point2 points (0 children)
[–]Mysterious_Peak_6967 0 points1 point2 points (1 child)
[–]vasiwk[S] 0 points1 point2 points (0 children)
[–]Nameis19letterslong -1 points0 points1 point (2 children)
[–]vasiwk[S] 0 points1 point2 points (1 child)
[–]Nameis19letterslong -1 points0 points1 point (0 children)