Friday, November 19, 2021

[SOLVED] How can I install pygame for Python 3 on Debian jessie?

Issue

I tried many times to install pygame for Python 3.5, but never succeeded. For example, I tried this but got the following error:

$ python3
>>> import pygame
enter code hTraceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pygame'
>>>

Everything looks fine while building and installing, but I still don't see any changes. Did I forgot something? Is there something wrong?


Solution

Just do:

$ sudo pip3 install pygame


Answered By - BlackBeans