I usually work with Unity, but today I decided to give pygame another go to improve my python skills. In MacOSX terminal, I installed pygame
like so: $ pip3 install pygame
, and everything works. Then I decided to test its functionality by quickly hopping into python in terminal: $ python3
. Then imported it:
>>> import pygame
everything worked. Then, in my project, I was importing some of the standard modules I knew I would need:
import time
import pygame
import random
import os
and it said, after running, that the module pygame
was not installed. Since I'm on Mac, python 2.7 is pre-installed and I might have installed pygame
in the 2.7 directory, but I checked it all out and nothing seems to be wrong. Please help me install pygame! Thanks