Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed How to Install Python (Windows)!
Preview
Video Player
00:00
00:00
00:00
- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
In this video, we’ll walk through how to install Python so it’s ready to use on your local machine.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
The first step of installing Python is to
navigate to their website, python.org.
0:00
Python's website is home to its
extensive documentation, so
0:06
I recommend coming back whenever
you need some guidance.
0:11
For this workshop, we'll hover over
the Downloads tab to see what's available.
0:15
At the time of this recording,
the most recent Python version is 3.11.3.
0:19
Since you're viewing this from the future,
you will likely see a higher version.
0:27
The installation process
shouldn't have changed.
0:31
But if your screen looks
drastically different from mine,
0:35
be sure to check the teacher's note for
this video.
0:38
Additionally, as you can see here,
Windows 7 and
0:41
earlier versions of Windows will not
be able to run Pythons 3.9 and above.
0:45
If you are running 7 or
an earlier version of Windows,
0:50
be sure to navigate to the full list of
downloads and download Python 3.8 instead.
0:54
Let's click on the button here that
says Python and the version number.
1:00
A download will start.
1:05
This may take up to a few minutes,
depending on your Internet speed.
1:08
Once it's done,
open up your downloaded file, and
1:12
it will bring up the Python installer.
1:17
We can see that there is the option
to customize our installation, but
1:20
I will install Python with
the default settings.
1:24
Be sure to tick Use admin
privileges when installing
1:27
py.exe if you can, and
also tick add python.exe to PATH.
1:32
These are both important if we
want Python to run smoothly.
1:37
Then click Install Now.
1:42
Windows will ask for
your permission to do so.
1:45
So click Yes.
1:48
And then we'll sit back and
wait for Python to be installed.
1:49
Once Python has been successfully
installed, you'll see this screen.
1:54
Feel free to read the text content and
click on these links, then click Close.
1:59
That was super fast.
2:06
Now, Python is properly
installed on your computer.
2:07
Let's check it out by
opening up Command Prompt.
2:11
You can do so by opening the Start menu
and searching for Command Prompt or Cmd.
2:15
Once it's open, type python --version,
and press Enter.
2:22
You should see Python and
2:29
your installed version being
printed to the Command Prompt.
2:31
You can also use the py shorthand, and
2:36
type py --version to see the same result.
2:40
Great job.
2:45
One more thing we should check for is pip,
which is Python's package manager.
2:47
As mentioned in the last video,
as you work more with Python,
2:53
you'll need to install third party
packages to use along the way.
2:57
Pip is what allows you to manage these,
whether it's downloading,
3:02
installing, uninstalling, or upgrading.
3:07
Pip should be installed by
default since Python 3.3,
3:10
but let's check that it is ready to go.
3:15
Back in your terminal,
3:18
type pip3 --version, and press Enter.
3:21
We can see that pip is indeed installed.
3:26
If that doesn't work,
try pip --version instead.
3:30
Congratulations, you've just
installed Python onto your computer.
3:37
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up