There are several reasons why this error can happen: If you still see the error even after installing the module, it means that the pygame module can’t be found in your Python environment. Once the module is installed, you should be able to run the code without receiving this error. # yum mirror for CentOS/Fedora/Red hat sudo yum install python3-pygame # apt-get mirror for Ubuntu/Debian/Mint sudo apt-get install python3-pygame # if you don't have pip in your PATH: python -m pip install pygame
0 Comments
Leave a Reply. |