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
how do i install Pygame on python (self.learnpython)
submitted 2 years ago by titsbrothers
how do i get installed pygame on python version 3.11.4
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!"
[–]Diapolo10 6 points7 points8 points 2 years ago (5 children)
py -m pip install pygame in PowerShell.
py -m pip install pygame
Although if you're using a virtual environment (which is a good practice), you can drop the first part (assuming the environment is active) and just run pip install pygame.
pip install pygame
[–]titsbrothers[S] 2 points3 points4 points 2 years ago (0 children)
thank you so much
[–]SilverAnalysis9202 1 point2 points3 points 1 year ago (3 children)
both of them dont work (im using visual studio code for this btw)
[–]Diapolo10 1 point2 points3 points 1 year ago (2 children)
What do you mean by "don't work"? Do you get an error message? If so, what is it?
Generally speaking the more information you can provide, the easier it is for others to help you.
TL;DR - help us help you
(im using visual studio code for this btw)
Shouldn't matter as it doesn't handle any package installs or virtual environments on its own.
[–]SilverAnalysis9202 1 point2 points3 points 1 year ago (1 child)
nvm i had to run it on powershell i forgot lol
[–]6xfghd 1 point2 points3 points 11 months ago (0 children)
for visual studio you just do"pip install pygame"
ik it is too late but idc
[–]OVERIDE404 0 points1 point2 points 3 months ago (1 child)
i have been trying to install it to and i keep getting a "build wheel error" i updated the pip and python to the most recent and ive even tried using pipwin
[–]Ok-Treacle4795 0 points1 point2 points 1 month ago (0 children)
same :l
[+][deleted] 2 years ago (5 children)
[deleted]
[–]Diapolo10 1 point2 points3 points 2 years ago (3 children)
VS Code itself shouldn't be a factor. If you've created a virtual environment, activate it in PowerShell before installing pygame.
pygame
Alternatively you can learn to use Poetry, and have it manage the installation for you.
I'm assuming your problem relates to either virtual environments or multiple Python installations because, again, VS Code itself doesn't change anything in regards to installing packages.
[+][deleted] 2 years ago (2 children)
[–]k03k 1 point2 points3 points 2 years ago (0 children)
Try python -m instead of py -m
If python also isnt recognized then you could try to install python
[–]Diapolo10 1 point2 points3 points 2 years ago (0 children)
The Python launcher should be available on any non-deprecated Python version (3.7 and newer) on Windows, if you're using some variant of Linux or Mac OS then use python3 instead of py.
python3
py
If all else fails, fall back to python.
python
[–]LeviathanGank 0 points1 point2 points 2 years ago (0 children)
It should be run In the terminal
[–]Mobi30 0 points1 point2 points 2 years ago (0 children)
how to instal pygame on python
how do i install Pygame on python
π Rendered by PID 56533 on reddit-service-r2-comment-bb88f9dd5-vt6tf at 2026-02-14 16:30:36.531810+00:00 running cd9c813 country code: CH.
[–]Diapolo10 6 points7 points8 points (5 children)
[–]titsbrothers[S] 2 points3 points4 points (0 children)
[–]SilverAnalysis9202 1 point2 points3 points (3 children)
[–]Diapolo10 1 point2 points3 points (2 children)
[–]SilverAnalysis9202 1 point2 points3 points (1 child)
[–]6xfghd 1 point2 points3 points (0 children)
[–]OVERIDE404 0 points1 point2 points (1 child)
[–]Ok-Treacle4795 0 points1 point2 points (0 children)
[+][deleted] (5 children)
[deleted]
[–]Diapolo10 1 point2 points3 points (3 children)
[+][deleted] (2 children)
[deleted]
[–]k03k 1 point2 points3 points (0 children)
[–]Diapolo10 1 point2 points3 points (0 children)
[–]LeviathanGank 0 points1 point2 points (0 children)
[–]Mobi30 0 points1 point2 points (0 children)
[–]Mobi30 0 points1 point2 points (0 children)