mindheist / pygame_examples

0 stars 0 forks source link

Verify if pygame exists before running the game. #1

Open mindheist opened 8 years ago

mindheist commented 8 years ago
Prabhus-MacBook-Pro:pygame_examples prabhudhanapal$ python maze_runner.py
Traceback (most recent call last):
  File "maze_runner.py", line 15, in <module>
    import pygame
ImportError: No module named pygame

Verify if pygame exists before running the game ; code goes in the main file.

sudo easy_install pip

mindheist commented 8 years ago

looks like this is a little complicated on OSX 10.10 and above : https://jamesfriend.com.au/installing-pygame-python-3-mac-os-yosemite , this was a useful article , but note that it sets up the environment with python3 ( which we might not necessarily want )