Hello and welcome to this video.
In this video I will show you how to install Python 3 on a Mac by default by turn coms pre installed
with all Max button.
The version is quite old so it comes pre installed with version two point seven.
The current versions of python being used is byte on 3 x so or less open up our terminal to check the
version of Python that we have installed.
So this is my terminal.
So you type in python you do a space dash dash version and press pointer and that gives you the current
version installed on your Mac.
So this is the version that comes pre installed.
It is possible to have both Version 2 and 3 installed.
So Version 2 and 3 can exist on the same machine.
So let's go over to the fish or PI ton Web site and download pipe on Version 3 X X meaning the current
version as of the time of recording this video the current version of Python if you go to downloads
it gives you the current version so the current version is three point seven point two.
All right.
So to begin the download just click on the button and it will just drop the download in the download
folder.
We give it a few minutes to complete.
You can see it here.
It's downloaded so once that blue bar is completed we know that it has completed the download.
So just give it a few minutes to complete.
So once the download is completed you can see here.
Gives you a little brown box on the bottom.
Just click on the brown box and it shows you what's in there which is a P cagey file.
So it tells you open and find out.
So click this to open it in finder.
Now this is what was downloaded so you just double click on it and that order.
Launch the installer.
So I'm just going to minimize everything else so that we can have access to the installer screen.
So feel free to read through what's on the screen click Continue.
You can scroll through and read through all this.
It just gives you some important information about the version.
Click Continue.
You can check out the history on the license if you've got time to do that.
Otherwise click continue and you need to agree to the license agreements before you can progress with
the installation so click agree and click install it will prompt you for your password so enter your
password and click install and you can see here.
It started the installation so I'm just gonna give it a few minutes to complete the installation.
Installation is complete too.
These are all the stuff that it basically installed so when you install Python it also installs all
this the idol and everything else so just going to exit the other moments just telling you what it has
installed and then here tells you the installation was completed successfully.
Congratulations Python three point seven point two for Mac OS ten point nine or later was successfully
installed so feel free to close the box and tells you here.
Do you want to move the python installer to the trash.
Now that we've completed I will say yes move to trash because we've done the installation.
Next thing is to open up the terminal and let's check for the version of Python but to check the version
of Python that we have installed we need to type in Python 3 and do a space dash dash version if we
type thing just Python it will return Python 2 which we don't want.
It tells me I've got Python three point seven to if we were to just tie pin pipe foam and do this space
dash dash version and press enter it gives you version 2.0 point seven two is very important.
When you are trying to develop or create things in Python you have to use the correct version of Python
that you are referring to.
For example if I wanted to do something interactive and I typed in Python to give me the python shell
and I can do a simple math.
So those six plus six a press enter it gives me the answer of 12.
Now if I want to exit.
This is called the python shell for I want to exit that typing exit and parentheses press enter and
they will exit the shell if I need to clear my screen.
I type in clear and that clears the screen.
Now if I want to access Python 3 shell I type in Python and then 3.
If you notice it tells me here Python three point seven point two.
So very important to type in the correct version of Python where you are trying to develop or experiment.
So again we can do a simple math and do eight last seven.
It gives you 15.
So we just exit typing exit and then the parentheses and that to exit the python shell.
So this concludes the installation of pilot on 3 on a Mac.
Thanks very much.
If you had any problems during the installation please feel free to let me know.
I'd be more than happy to help out.
Thanks and bye for now.