IMGD 2905 Setup

Setup Python for a Game Analytics Pipeline

The goal of this project is to set up python for a game analytics pipeline. This project is not due, but will be used for most, if not all, of the remaining class projects.

Note, you may not need to do one or more of the below steps because they are already done, depending upon your environment (e.g., you've previously installed Python or have an editor you are comfortable using).

Both Windows and Linux environments are supported. For those interested in doing their projects on a Mac are on their own - but a slight modification of the instructions should work.


Install Python

Choose the installation method appropriate for your Operating System.

Linux (Ubuntu)

Install Python:

sudo apt-get install python3-pip

Edit Python scripts using your favorite text editor (e.g., emacs).

Run your Python scripts with:

python3 my-script.py

You can write Python scripts with your favorite editor (e.g., nano or emacs).

Windows

Download and install Python for Windows:

https://www.python.org/downloads/windows/

Important! On the main "Install Python 3.6.4" screen, there is a checkbox at the bottom for "Add Python 3.6 to PATH". You want to select this.

Download and install Notepad++:

https://notepad-plus-plus.org/

Open Notepad++. On the menu go to: "Run" → "Run.." (F5). Type in:

`C:36.exe -i "$(FULL_CURRENT_PATH)"

Press "Save" to create a shortcut for it.


Test It Out

Put the below script into a file called "hello.py":

# This program prints Hello, world!

print('Hello, world!')

Open up up a terminal window (Linux) or command prompt (Windows users, type "cmd" in the search bar). Change directories to wherever you stored the file. e.g., in Windows this may look like:

cd c:\Users\claypool\Desktop\2905\

Run your Python script with:

python hello.py

(Linux users may need to use python3 instead.)

If all is working, output should look similar to:

Hello, world!

Return to the IMGD 2905 home page

Questions: imgd2905 question-answer forum