#pygame not installing

1 messages · Page 1 of 1 (latest)

thick ridge
#

Reinstall python and make sure to select "Add to PATH" during the installation @golden ginkgo

wild urchin
#

@thick ridge just do pip install pygame

thick ridge
#

Python and pip are not on his PATH.

#

This means he can’t use pip from terminal

#

He needs to add python to PATH, the easiest way to do that from my experience is reinstalling python

wild urchin
#

@golden ginkgo try creating a folder for ur project first and i suggest working inside a virtual environment

golden ginkgo
waxen anchorBOT
#

"Doesn't work" is not very descriptive, please explain how it doesn't work (what it's currently doing/what you want it to do) as well as provide any errors as well (send full error if it's long use a pasting service)

thick ridge
#

@golden ginkgo

golden ginkgo
#

What

thick ridge
#

What happens now

#

To verify, you have installed python and selected "Add to PATH”?

golden ginkgo
#

I have clicked add to path

#

And installed

thick ridge
#

Okay, now open a new terminal and try

golden ginkgo
#

How

#

Wdym

#

Is it a command promt terminal? @thick ridge

golden ginkgo
golden ginkgo
thick ridge
#

Yes a new terminal

golden ginkgo
#

What do I type in?

thick ridge
#

Did you open a new terminal?

golden ginkgo
#

Yes

thick ridge
#

Okay, now write python -V to verify python is installed

golden ginkgo
#

A lotta things came up

thick ridge
#

You can also try pip -V

#

Take a screenshot of the output

golden ginkgo
#

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'pip' is not defined. Did you mean: 'zip'?

#

came up

thick ridge
#

Well you wrote that into the python repl

#

This means python is installed properly now at least

golden ginkgo
#

Wdym

thick ridge
#

Now exit python and do pip install pygame

golden ginkgo
#

@thick ridge

#

I’m in visual studio code
Wdym exit python

#

@thick ridge

#

I did python -v not python -V

#

heres the screenshot

thick ridge
golden ginkgo
#

then it says

#

@thick ridge

thick ridge
#

Try python -m ensurepip --upgrade

#

If that doesn’t work, reinstall python again and make sure u also select to install pip…

golden ginkgo
#

do i disable?

torpid sky
golden ginkgo
#

where?

golden ginkgo
torpid sky
#

Click add python.exe to PATH

#

and then click on install now

golden ginkgo
#

Ok

#

Now what do o type into cmd

#

In visual studio code

torpid sky
golden ginkgo
#

this is solved i just tryed pip install pygame again and it worked idk why it didnt last time i tryed it