#๐Ÿ”’ Unable to install pygame

128 messages ยท Page 1 of 1 (latest)

crisp tokenBOT
#

@jovial yoke

Python help channel opened

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.

edgy sparrow
#

what

#

was your problem instantly solved or?

#

if yes, close it by using !close and if no then uh

#

ask your question again then

jovial yoke
#

no, it wasn't solved

#

...

#

did it get rid of my mesage, what happened???

edgy sparrow
#

oh

#

did you insert a log / txt / py file to your message

jovial yoke
#

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

edgy sparrow
#

and?

jovial yoke
#

here's the text file

edgy sparrow
#

whats the error message?

#

!pastebin

crisp tokenBOT
#
Pasting large amounts of code

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.

edgy sparrow
#

dont drop your txt file here

#

use the pastebin

jovial yoke
#

there we go

edgy sparrow
#

WHAT

#

i have never seen that error before

jovial yoke
#

me neither

#

it's starting to piss me off

edgy sparrow
#

you should try updating pip

#

py -m pip install --upgrade pip setuptools wheel

#

that will update all pip setuptools and wheel

jovial yoke
#

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

edgy sparrow
#

hmm

jovial yoke
#

right??

edgy sparrow
#

you on linux, windows, or mac?

jovial yoke
#

windows

edgy sparrow
#

oh

#

and you sure that you have python in your PATH?

jovial yoke
#

linux would probably make this so much better I know, but I can't really do that

edgy sparrow
#

follow my steps

#

youre on windwos 11 right

jovial yoke
#

yep

edgy sparrow
#

ok so

jovial yoke
#

sucks, I know

edgy sparrow
#

in the search bar next to the start menu

#

search "environment variables"

#

this search bar

jovial yoke
#

aight, opened system properties

edgy sparrow
#

what

#

no

#

wait

#

ok

jovial yoke
edgy sparrow
#

click "environment variables"

#

and send the result

jovial yoke
edgy sparrow
#

ok

#

do you see the "Path" thing located near OS

jovial yoke
#

yup

edgy sparrow
#

this part

#

click it

#

and select edit

#

and send the result

jovial yoke
edgy sparrow
#

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

crisp tokenBOT
#
Install packages with `python -m pip`

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.

jovial yoke
#

huh

edgy sparrow
#

do you have multiple python versions

#

?

jovial yoke
#

I don't think so...?

edgy sparrow
#

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

jovial yoke
#

coding makes me want to kms, ong (not literally)

edgy sparrow
#

can you try running py -m pip install --upgrade setuptools wheel

#

?

jovial yoke
#

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)

edgy sparrow
#

oh

#

the packages arent outdated either

jovial yoke
#

(โ•ฏยฐโ–กยฐ)โ•ฏ๏ธต โ”ปโ”โ”ป

edgy sparrow
#

do you have a venv?

jovial yoke
#

I do not believe so, no

edgy sparrow
#

oh

jovial yoke
#

how do I set one up

edgy sparrow
#

well

#

i am not rlly recommending a venv here

jovial yoke
#

if that'd help

#

aight

edgy sparrow
#

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

jovial yoke
#

lets goooo

#

is it to trash my setup and give up

edgy sparrow
#
  1. 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

#
  1. just give up now, it might be a problem with pip itself and might be fixed later
#
  1. try reinstalling python for a last effort
jovial yoke
#

dam, lmao

#

all give that a shot

#

thank you, lol

edgy sparrow
#

i gotta go for now, but will return soon

#

dont worry

#

and please tell me if those steps did work

jovial yoke
#

have a good daynight

edgy sparrow
#

solutions*

jovial yoke
#

I will

edgy sparrow
#

ty

jovial yoke
# edgy sparrow 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

edgy sparrow
#

oh

#

okay

#

glad it fixed

#

@jovial yoke then feel free to close this post using !close in this chat. gl coding henceforth and furthermore!

jovial yoke
#

!close

crisp tokenBOT
#
Python help channel closed

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.