Actions

Difference between revisions of "Python installation"

From ACL@NCU

Line 14: Line 14:
</syntaxhighlight>
</syntaxhighlight>
*execute get-pip.py
*execute get-pip.py
<syntaxhighlight lang="bash" style="border:3px dashed black">
<syntaxhighlight lang="DOS" style="border:3px dashed black">
python get-pip.py
python get-pip.py
</syntaxhighlight>
</syntaxhighlight>
*execute the install_python.bat script
*execute the install_python.bat script
<syntaxhighlight lang="bash" style="border:3px dashed black">
<syntaxhighlight lang="DOS" style="border:3px dashed black">
install_python.bat
install_python.bat
</syntaxhighlight>
</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.

Revision as of 02:16, 28 February 2018

Installing Python on your Windows laptop

Files to download (from the Google Classroom "course materials" area)

  1. create a folder c:\temp, save the following files to this folder
  2. Python 2.7.14 (win 32-bit)
  3. get-pip.py
  4. install_python.bat
  5. 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
cd c:\temp
  • execute get-pip.py
python get-pip.py
  • execute the install_python.bat script
install_python.bat
  • After the above process are completed (without error or interruption), try the following script:
python sq.py
  • If everything works out, you should see a window containing a light blue square at the center.