Hi again, everyone.
In this lecture, we'll start installing Python on our Windows operating system.
So first of all, we'll download the installation file, then we'll install the ABC.
Then we're going to configure Python in our environment variables.
Afterwards, we're going to install PATRÃO, which is our development environment.
Or in other words, where are we going to write our python code later on?
I just want to mention that almost each lecturer has an attachment PDA file that you can follow the
steps that I'm talking about them.
And if you get into trouble, that's a great thing to do.
So let's elaborate of what we're going to do in this following lecture and this lecture.
First of all, we're going to go to Python official website and download the latest version.
We're going to install it on a reachable location such as see Python.
And in the next phase, we're going to add Python to environment variables.
And I just want to elaborate a little more about this section.
Why should we do it at all if we already install Python?
Why should we add it to environment variables?
Because it's important for me that you would know the details behind what we do and not just to do it
as robots.
Right.
So the reason we add Python to environment variables, which will explain later on the steps, is because
after we install Python on our machine, it's still not recognized all over our operating system, meaning
that later on when we install Pichon and we would like to write Python code, it would say, I don't
know any python any I don't recognise Python language on your operating system.
I don't know what Python is, even though we installed it by John doesn't recognize it.
So in order for Python to be recognized all over the system, meaning on charm, meaning in the command
line and all of the places that we have to adapt to environmental variables, great.
So let's begin.
So first thing first go to Python dot org, slash downloads and just download the latest Python version
that you have right here and ignore if this sub version number of changes, for example, in here is
that 85, it's OK.
Just download it.
And in order to save some time, I have already previously downloaded the file.
And when you finish or download, just click on it and open it.
You would have two options right here.
You would have installed now and customize installation.
Lets choose the second option.
Next week, next, and right here at the bottom, I would like you guys to change the path and place
it to see Biton.
All right, and click install, I will just fast forward the installation to save some time, so Sims
installation has been successful.
Let's just close this window and open your Windows Explorer, then find the speci item and the right
click on it with your mouse, then choose properties and then choose advanced system settings.
All right, then click environment variables.
And at this point, I just want to mention, guys, that I'm going to explain how to add Python to your
system variables.
And after I'll finish, I'll explain also how to do it on Windows eight and below is pretty similar
with a small, slight change.
It's easy peasy for those of you who have Windows eight or less, and we'll talk about it in the next
few minutes.
But for now, we'll explain how to do it on Windows 10.
So environment where the screen is open.
Just go to the bottom part, which is system variables and just find path item right here and click
on edit.
Great.
Then click on you and you could see an empty item added here and there.
Just click brose and go to your Python installation directory.
I have installed Python into C.
Python and then just click on Leyb.
Great.
And again, you rose.
Do it again.
Ad libs.
OK.
And again.
It's scripts.
And while this time and one rose.
And now choose whatever folder you have inside the main directory of Python, which is called Python
with a number.
This number is going to change, maybe doesn't matter, just choose it and then click OK and OK.
Once again, great.
So now we have added Python to our system variables on Windows 10.
So let's let's just click OK here and OK again.
So on Windows eight, for those of you who have Windows eight or Windows seven at this, this flow is
almost the same.
So just go to advanced system settings, environment variables.
Then when you find the path item right here, just click edit and once you click edit, you would not
see the screen that you have in windows.
Then you would see something like this.
You would have an edit system, variable screen opened, you would see the variable name right here,
which is bad.
And what you need to do is at the bottom line here, which is called variable value, you would have
to go to the last item and then place dot and a comma and then add the four items that I have just mentioned.
All right.
So have a look.
You have a daughter in a coma right here dividing the items just added between each item and add the
four items that I have just mentioned.
Great.
So now we have added pite onto our environment variables.
Let us just verify that it is edited using our command line.
So just click at the bottom left corner and start, then type in CMD and click enter.
So let's just type in Python minus Meiners version to verify Python is recognized by our operating system.
All right, it seems we have an error here, Python is not recognized.
Let's go again to the PDF file.
All right.
So we are right here.
Oh, I see.
We forgot to add C Python as such.
So let's edit right here again.
So open your Windows Explorer again.
A right click on this b C properties.
Advanced System Settings, Environment Variables Barthe.
Beth Item added and then click new.
Brose and go to sea by dawn, just add the main directory of Python.
This is what we forgot to add right here, the fifth item by Don.
OK, OK, and OK again, now this should work.
Close the command line and reopen it in order to refresh.
Now, type in Python space minus Mayan's version.
Yes, and you can see right here that Python version three eight five is installed and recognized by
our machine.
So what we were missing is the last item right here, which is C Python.
I have added these three and this fourth item right here and forgot this one.
So once we had the main directory to fight on, you could see it in the command line.
And now we're done with this second section.
Great.
So the next step will be installing Pichon, where we write our code item is the vote by Branes, which
is one of the most popular companies that develop IDs for all coding languages they have in development
environment dedicated for each language, for each language.
They have intelligence for Java, for example.
They have by chance for Python and so on and so on.
So just go to w w w that should bring dot com slash by chance download.
Great.
And right here we have to version you'd like to download the community version, just click download
right here and save some time.
I have already downloaded by translation installation right here.
So once you finish downloading your picture, just double click on it.
And let's install it as well, click next.
I would like also to change the directory here, to be seen by charm and then click next.
All right.
That's next again and install, I'm going to fast forward this installation as well to save some time
for you guys.
The installation has been completed.
I'll just check the check box right here, run by finish.
All right, you have this small window in part by chance settings, just click, do not import settings
and click, OK?
And you have a screen of customization open for you guys.
You can just click Skip.
Great.
So there you have it by charm is installed, Python is installed in our machine as well and also configured
in environment variables.
And once the final python in our machine, in the path item, adding this one, two, three, four and
five items in the path, it will be recognized from our command line and also from each arm.
And that is it.
Guys in the next lecture will learn how to create a new PARSHURAM project and we'll go from there.
See you in the next lecture, guys.