Python For Windows Primer
Python For Windows Primer
Python For Windows Primer
Users
Installation of Python & SciPy Libraries
• Get the latest version of Python installed on your system if it is not already. There are
many good ways to do this. See https://www.scipy.org/install.html
• Install the following SciPy Libraries using pip (see below):
o scipy
o numpy
o matplotlib
o pandas
o sklearn
• python -m pip install --user numpy scipy matplotlib pandas sklearn
• Use File Explorer to create a folder where you plan to store your Python programs. You
can use a different folder for each assignment.
• In the box at the top where the file path is shown, right click and click on “Copy address
to text”.
• Click on Start >> Windows System >> Command Prompt
• A Command Prompt window should open.
• Type “cd /d”, then a space, then Ctrl-V. This will paste the folder (i.e., directory) you
made to store your Python programs in. The command line should look something like
this:
• Press Enter. This will change the Command Prompt environment to the directory with
your Python programs.
• Type “dir”. This will list your Python program files. There should be nothing there since
you haven’t created a program yet. It should look something like this:
• Click on Start >> Windows Accessories >> Notepad to open the Notepad editor.
• In Notepad type in the following program exactly as written:
# File: Hello.py
• To run the program, in the Command Prompt window (with your directory set to the one
with your Python files in it), type python Hello.py and hit Enter.
• You should see the line Hello World!
• Congratulations, you have run your first Python program.