Dec-04-2020, 12:18 PM
Thanks for your help guys,I think I've managed to install pygame, as I getthis output from the terminal.
Output:PS C:\Users\djwil\Documents\python\learning python> pip install pygame
Requirement already satisfied: pygame in c:\users\djwil\appdata\local\programs\python\python38\lib\site-packages (2.0.0)
WARNING: You are using pip version 20.2.1; however, version 20.3.1 is available.
You should consider upgrading via the 'c:\users\djwil\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
PS C:\Users\djwil\Documents\python\learning python>
However when I run this code again I still get this error:Error: File "c:\Users\djwil\Documents\python\python crash course\Projects\Alien invasion\alien_invasion.py", line 3, in <module>
import pygame #contains functionality to make a game
ModuleNotFoundError: No module named 'pygame'
PS C:\Users\djwil\Documents\python\learning python>
I'm not sure why its telling me it can't find the module when its previously showed that its been downloaded.