Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 2.19 KB

File metadata and controls

67 lines (46 loc) · 2.19 KB

Installing Python 3 - Mac

Back to Syllabus

Start by heading to the Python dowload page

Click the yellow download button to download the latest version of Python: alt text You should see something like this at the bottom of your browser: alt text Once the download completes open the downloaded file.

You should see the following window: alt text Just click continue.

And continue again: alt text

Continue once more. alt text

Agree to the terms. alt text

Finally click install. alt text

And done! You can exit the installer now. alt text

Now let's verify everything is working properly. Start by opening your terminal. You can do this by pressing command + space at the same time. You will see a search box pop up.

alt text

Type terminal and press enter

alt text

You should see the following window: alt text This is your terminal. We will be using this to run your python programs.

Let's start by typing python3 and pressing enter: alt text

Now we can see our Python version alt text

You should also see >>> This means you are in your python interpreter alt text

Now we can run Python commands right from our Terminal! Let's try print("Hello World") and press enter alt text

Now we can see that it gave us the output "Hello World" alt text

To exit the Python interpreter type exit() and press enter alt text

Now we are back to our normal Terminal alt text

Congratulations you have successfully installed Python!