Skip to content
Sign upLog in
← Back to Community

How can I install the PyGame package for Python?

Profile icon
djroebuc

I'm trying to install the PyGame package version 1.9.6 and the install fails. Can anyone help explain what I can do to use PyGame with Python?

Voters
Profile icon
Eligall
Profile icon
djroebuc
Comments
hotnewtop
Profile icon
Vandesm14

Are you using a pygame repl?

Profile icon
djroebuc

@Vandesm14

I'm trying to install Pygame using the Real.it packages feature and the install fails. The last line of the install process is a 'failed' message in red text.

I tried the "import pygame" statement in the shell and it indicates that pygame is not available.

Profile icon
Vandesm14

@djroebuc
You need to use a pygame repl instead. Just importing pygame into a python repl does not work on repl.it

Profile icon
ash15khng

Recently people have been having trouble with Pygame. Not too sure why tho?