python import pygame if no output appearspython has imported pygame and you're ready to move on to "starting the game projecton page if you're running python two steps are requiredinstalling the libraries pygame depends onand downloading and installing pygame enter the following to install the libraries pygame needs (if you use command such as python on your systemreplace python -dev with python -dev sudo apt-get install python -dev mercurial sudo apt-get install libsdl-image -dev libsdl -dev libsdl-ttf -dev this will install the libraries needed to run alien invasion successfully if you want to enable some more advanced functionality in pygamesuch as the ability to add soundsyou can also add the following librariessudo apt-get install libsdl-mixer -dev libportmidi-dev sudo apt-get install libswscale-dev libsmpeg-dev libavformat-dev libavcode-dev sudo apt-get install python-numpy now install pygame by entering the following (use pip if that' appropriate for your system)pip install --user hg+the output will pause for moment after informing you which libraries pygame found press entereven though some libraries are missing you should see message stating that pygame installed successfully to confirm the installationrun python terminal session and try to import pygame by entering the followingpython import pygame if this worksmove on to "starting the game projecton page installing pygame on os you'll need homebrew to install some packages that pygame depends on if you haven' already installed homebrewsee appendix for instructions to install the libraries that pygame depends onenter the followingbrew install hg sdl sdl_image sdl_ttf ship that fires bullets