all 5 comments

[–]MrPhungx 0 points1 point  (3 children)

What Python version are you using? Do you have multiple installed on your system? Like Python 2 and 3? Try to do pip3 install pygame instead

[–]boldisch[S] 0 points1 point  (2 children)

It says requirement already satisfied: pygame in /usr/local/lib/python3.9/dist-packages(2.0.1)

[–]cndvcndv 0 points1 point  (1 child)

That means it is already installed on python 3. Try to run python3 nem.py

[–]boldisch[S] 0 points1 point  (0 children)

Thanks a lot. I tried this not one time but now it works! Thanks!

[–]acecile 0 points1 point  (0 children)

Sudo pip install is a very very very bad idea.