Python Environment Setup mini-Guide for Windows 7
This mini-guide describes the step-by-step installation process of the required modules to practice Python in the environment similar to CodeSkulptor locally on a Windows 7 computer. This environment should never be used instead of CodeSkulptor during the "An Introduction to Interactive Programming in Python" course, but it can help you try your own mini-projects.
Many assumptions along the guide are not the “best way” but I am neither a Python pro, nor a sysadmin pro. Please avoid any "production" usage of this guide.
The current stable version is Python 2.7.8. Download and run the wizard.
We do not use Python 3, because the syntax is a bit different from what you will learn during this course.
We do not use x64 version because one of the important modules 'pygame' at this time has only beta-version in 64-bit.
We assume later that Python will be installed to ‘C:\Python27
Pip is a packet manager for Python, the installation process is described here. Still it may not be very clear for Windows.
Save file: https://bootstrap.pypa.io/get-pip.py to 'C:\Python27\Tools\Scripts'
Open Windows PowerShell and go to 'C:\Python27' (I believe Command Prompt also works)
Run: `.\python.exe Tools\Scripts\get-pip.py`
We install all the later required modules using pip with PowerShell syntax:
`python -m pip install -U pip package_name`
Run `python -m pip install -U pip setuptools`
This and some of the latter modules are required by 'simplegui', but may fail to install automatically from the 'simpleguitk' package. I think this is due to some versions conflict.
Run: `python -m pip install -U pip Pillow`
Run `python -m pip install -U pip matplotlib`
Download Windows 32-bit binary installer for Python 2.7 http://pygame.org/ftp/pygame-1.9.1.win32-py2.7.msi
Run the Wizard.
Automatic installation of the required 'pygame' module failed and crashed the process, so I had to install it before and exclude now.
Run: `python -m pip install -U pip simpleguitk --allow-external pygame --allow-unverified pygame`
At this point you can save to some ‘.py’ file the sample CodeSkulptor program and run it with your new Python Shell. The only thing to change is the first module import string ‘import simplegui’ to ‘import simpleguitk as simplegui’