Ask coding questions

← Back to all posts
why cant i import pygame
kevery1 (0)

I enter.
import pygame
and it says.
module not found
so I go to packages and search pygame
I press add Extention and it says
you are using pip version 19.2.3, however version 20.0.2
... package operation failed
ok so I go and add pip 20.0.2 to the thing it works and I press add package pygame again and it does the same thing!!!
I'm just not sure, please help

Answered by RogueHalo (400) [earned 5 cycles]
View Answer
RogueHalo (400)

When creating the repl, you should select pygame Then you will be able to use it.

AlexanderTarn (270)

use python with pygame not python