short instructions for the programming with python …vsego/python/anaconda-install.pdf ·...

17
Installing Anaconda Vedran ˇ Sego, vsego.org Short instructions for the ”Programming with Python” course at The University of Manchester

Upload: phungdung

Post on 28-Sep-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Installing AnacondaVedran Sego, vsego.org

Short instructions for the ”Programming with Python” courseat The University of Manchester

Download (1)

0. Go to Anaconda download page.

1. Be careful to pick Python 3.x.

Download (2)

2. Download Python 3.x installer forWindows 64-bit, or

3. for Windows 32-bit, if that’s whatyou have.

Start the installer

Run your download.

Click ”Next”.

Install (1)

Accept the licence agreementIt is advisable to read it first. ,

Install (2)

1. Unless you deliberately want allusers on your computer to useAnaconda, choose ”Just Me”.On most home Windows systems,only a single account is usedanyway, so this option won’t makemuch difference either way.

2. Click ”Next”.

Install (3)

Click ”Next”, unless you have a reallygood reason to pick a non-defaultlocation for Anaconda.

Install (4)

The options here should be fine. Click”Next”.

Install (5)

Patience is a virtue.Those lacking it, might want toconsider having a cup of tea while theinstallation is done. ,

Install (6)

When the ”Next” button becomesavailable (i.e., the installation isfinished), click it.

Install (7)

Your Anaconda is ready for you tobecome the next programmer legend!Click ”Finish”.

Start Anaconda

Find the new Start menu item”Anaconda” (the exact location maydepend on the Windows’ version thatyou’re using) and click ”Spyder”. Thisis the editor that we shall be using.

First usage (1)

1. Write a test program, for example:

p r i n t ( ” H e l l o , World ! ” )

Leave the grey part (a comment)and a green part inside triplequotation marks as they are.

2. Go to the ”Run” menu, then click on the ”Run” item (or justpress F5).

First usage (2)

With the first run of the program,Spyder will ask about some basicoptions.In this window, select ”Execute in anew dedicated Python interpreter”,which means that each run of theprogram will go clean, without variablevalues from the previous runs (whichcould cause weird errors).

First usage (3)

Your program runs in the bottom right part of the editor:

First usage (4)

If you need to fix your program settings fromthe first run, you can do so in menu ”Run” byclicking ”Configure...” (or press F6).

That’s it!,

Happy coding...