Hello Windows user.
If you are not using a Windows computer, then this video
is not for you.
However, if you are one of the people in the world who are
using Windows, which is a lot of people like 60% of the world uses
Windows or something like that, you might be interested in
learning how to install Python on Windows,
I'm using Windows 10, and also installing Anaconda, along with
how to run some Python commands.
So I just thought I would make a proper support video specifically
for Windows users.
So first things first, we need to download Python.
[no audio]
And so I'm just going to open up whichever browser
and I'm going to go to 'python.org'.
[no audio]
I guess we can make this a touch bigger.
And let's head on over to 'Downloads'.
And now it's going to automatically suggest which version to download for me.
So I'm going to download Python 3.8.2, and I can save it, and I can run it,
and all sorts of stuff. Obviously take security measures into account here.
I'm just going to run this because I already have antivirus
and all that stuff running on here.
If you don't, you may want to look into that just to be safe
on the internet. All right.
So let's go ahead and install Python.
So this just automatically detected 32-bit for me, if
you're using a newer computer, definitely get the 64-bit, if that is an option.
And also you're going to want to add that Python path
in there. So make sure you click this little box.
So I'm just going to select the 'Install Now'.
[no audio]
Yes, and the setup is in progress.
[no audio]
We'll just wait for it to do its thing here.
[no audio]
Okay. So the setup was successful.
Thank you, Mark Hammond, for all your work. 'Disable path length limit'
That's usually a good idea.
Let me click that.
It's going to ask me. Yep
I'm going to confirm that and 'Close'.
And now Python is installed, so I can go in here and I can
just type in 'Command Prompt', and you can see here.
And I'm going to run this as an administrator just so that
I have proper permissions.
Again, it's going to ask me, do you want to do this? Yes, I do.
And now typically throughout the rest of this course and
throughout a lot of other videos you'll see on the internet,
you will see people say they'll type 'python -v' or '--version',
[no audio]
like this, but that's not going to work for us, not on Windows
anyways. We can do 'python -v',
that also isn't going to work. On Windows,
instead what we use is just 'py'.
So 'py -v', and it gives us the version that we're using. 'py --version',
and that gives us all of our regular Python commands.
So what we can do now is instead of typing Python, or occasionally
Python 3 or Python 3.6,
and then whatever your version or your command is, not your
version, but whatever your command is you just type 'py'.
So if you're running a Python file, you'd run 'py',
your file, '.py',
[no audio]
And that's it. Now 'your_file.py' doesn't exist,
so that's not actually going to do anything for us.
But moving forward, if you run into a Python file, you can
always run it with just 'py'.
Also getting into your shell,
this is pretty important to know, just getting into your Python shell,
there's two different ways you can do this.
The first way is you can just type 'py', and hit enter,
and you can quit by hitting or typing
'quit()' with a parentheses around it,
or you can go down here and it'll, say, 'Recently Added',
or if it's not in here, it'll be somewhere in here,
and you can just click 'IDLE',
and this will spin up Python for me.
And so this looks a little bit different, but this is just
pure Python. So this is not your command line.
This is just pure Python.
And so now I can 'print('Hello World')',
and it gives me nice little helpful tips, like what we saw
there. And I can print that, then assign a variable
'Python for everybody',
and I can print that out as well.
[no audio]
And voila, and if I want to get out of it, you can just close this as a program,
or you can type 'quit()' with parentheses.
Cool. So that's how you would download and install Python on Windows,
and also how you would run it in your 'Command Prompt', and
in your Python IDLE.