Python installation: Difference between revisions
Jump to navigation
Jump to search
| Line 25: | Line 25: | ||
python sq.py | python sq.py | ||
</syntaxhighlight> | </syntaxhighlight> | ||
*If everything works out, you should see a window containing a light blue square at the center. | *If everything works out, you should see a window containing a light blue square at the center as shown below (lasting for 2 seconds then vanishes). | ||
[[File:Sq.jpg]] | [[File:Sq.jpg]] | ||
Revision as of 03:42, 28 February 2018
Installing Python on your Windows laptop
Files to download (from the Google Classroom "course materials" area)
- create a folder c:\temp, save the following files to this folder
- Python 2.7.14 (win 32-bit)
- get-pip.py
- install_python.bat
- sq.py
Steps to follow
- Double click on the downloaded python-2.7-14.msi program.
- Open a command window and change directory to where you saved get-pip.py
<syntaxhighlight lang="DOS" style="border:3px dashed black"> cd c:\temp </syntaxhighlight>
- execute get-pip.py
<syntaxhighlight lang="DOS" style="border:3px dashed black"> python get-pip.py </syntaxhighlight>
- execute the install_python.bat script
<syntaxhighlight lang="DOS" style="border:3px dashed black"> install_python.bat </syntaxhighlight>
- After the above process are completed (without error or interruption), try the following script:
<syntaxhighlight lang="DOS" style="border:3px dashed black"> python sq.py </syntaxhighlight>
- If everything works out, you should see a window containing a light blue square at the center as shown below (lasting for 2 seconds then vanishes).
