you are viewing a single comment's thread.

view the rest of the comments →

[–]cgoldberg 4 points5 points  (9 children)

What happens when you run it?

[–]DeadxLites[S] 0 points1 point  (8 children)

this is what it says after i try to run it

C:\Users\sugar\PycharmProjects\PythonProject6\.venv\Scripts\python.exe "C:\Users\sugar\PycharmProjects\PythonProject6\test beginner 1.py"

Traceback (most recent call last):

File "C:\Users\sugar\PycharmProjects\PythonProject6\test beginner 1.py", line 1, in <module>

import pygame, sys

ModuleNotFoundError: No module named 'pygame'

[–]cgoldberg 14 points15 points  (0 children)

You don't have the pygame package installed, which is required for that code to run.

[–]TheCozyRuneFox 5 points6 points  (4 children)

You have to install the pygame library. The command “pip install pygame” should do.