#๐ Unable to install pygame
128 messages ยท Page 1 of 1 (latest)
@jovial yoke
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
what
was your problem instantly solved or?
if yes, close it by using !close and if no then uh
ask your question again then
yeah
I'm having a problem with installing pygame, I'm trying to do a game project in vscode with python 3.13 and have been having trouble with installing pygame
first it wasn't recognizing pip, and I fixed that
but now, I do
py -m install pygame
and it starts the download but fails
and?
here's the text file
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
you should try updating pip
py -m pip install --upgrade pip setuptools wheel
that will update all pip setuptools and wheel
it's already been updated, that's how I got to this point
my initial problem before coming here was that pip wasn't recognized, thus I updated it
now it gives me this bs
that makes it harder
hmm
right??
you on linux, windows, or mac?
windows
linux would probably make this so much better I know, but I can't really do that
wdym?
yep
ok so
sucks, I know
in the search bar next to the start menu
search "environment variables"
this search bar
aight, opened system properties
yup
oh so python is located in the path huh
weird
you shouldn't need to use py -m if your python is set to path
hold on this might be helpful
!dashm
When trying to install a package via pip, it's recommended to invoke pip as a module: python -m pip install your_package.
Why would we use python -m pip instead of pip?
Invoking pip as a module ensures you know which pip you're using. This is helpful if you have multiple Python versions. You always know which Python version you're installing packages to.
Note
The exact python command you invoke can vary. It may be python3 or py, ensure it's correct for your system.
huh
I don't think so...?
oh wait that is recommended
anyways
so its not problem with yoru system and your path
python should install dependencies for you if youre tryna install a package
but in this case its so weird
coding makes me want to kms, ong (not literally)
Requirement already satisfied: setuptools in c:\users\owner\appdata\local\programs\python\python313\lib\site-packages (75.5.0)
Requirement already satisfied: wheel in c:\users\owner\appdata\local\programs\python\python313\lib\site-packages (0.45.0)
(โฏยฐโกยฐ)โฏ๏ธต โปโโป
do you have a venv?
I do not believe so, no
oh
how do I set one up
but pygame might look for SPECIFIC versions of packages
and in taht case you should probably create a venv
but if no the no need to
ok @jovial yoke i got a solution for you
- if you decide to give up working with pip, then you should try using alternative download methods
examples include downloading .whl files from the PyPI page
- just give up now, it might be a problem with pip itself and might be fixed later
- try reinstalling python for a last effort
i gotta go for now, but will return soon
dont worry
and please tell me if those steps did work
have a good daynight
solutions*
I will
ty
for when you get back... It worked finally, uninstalling python from my machine completely and reinstalling fixed the problem
thank you, have a good day/night
oh
okay
glad it fixed
@jovial yoke then feel free to close this post using !close in this chat. gl coding henceforth and furthermore!
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
