Preparing for the Rookie Kit
You will need to install Python 3 and Pygame to participate in the Rookie Kit Division. Below you will find the instructions to install python 3 and pygame. After you are finished with the installation, you can practice by following the instructions for dodgeball: http://cit.dixie.edu/cs/0000a/assignment_dodgeball.php.
Good luck and we will see you at Code Camp!
- Download and install Python 3.x
Get the latest stable release. Don’t go for the alpha or beta releases.
It’s usually best to install for all users, if you have the privileges
to do so. Also, setting the PATH variable in Windows is a good idea.
(As of Nov 2, 2017 the latest release is 3.6.3)
- Open a command prompt as administrator. Search for
cmd, right click and
Run as administrator.
- Check the version of python to make sure it is Python 3
- If you get an error saying ‘python’ is not recognized as an internal or external command try using
pythonfor each of the following commands. If you get a similar error after trying
py --versionyou need to reinstall python 3 making sure to select the “Environment Variables” option under the installer options.
- Update the pip installer
python -m pip install --upgrade pip
- If you get an error saying No module named pip, then you need to re install python 3 making sure to install the pip module.
- Install PyGame with
python -m pip install pygame
- Test by launching
IDLE 3and doing an
import pygame. If that doesn’t produce
an error, you should be good to go.
brew, using these instructions.
This is a package manager. It is capable of installing all sorts of programs.
- If you need Python 3 installed:
brew install python3
- Link applications to Python3:
brew linkapps python3
- Install Pygame Dependencies:
brew install --with-python3 sdl sdl_image sdl_mixer sdl_ttf portmidi
- Install Pygame:
pip3 install pygame
sudo apt-get install python3-pip
sudo pip3 install pygame