1
00:00:00,869 --> 00:00:02,745
- [Man] Hi, and welcome
back to the course.

2
00:00:02,745 --> 00:00:05,823
In this video, we're going
to be installing Flask.

3
00:00:05,823 --> 00:00:09,990
Flask is a library that works
with our Python installation

4
00:00:10,953 --> 00:00:15,108
and is what's going to let
us create our REST APIs.

5
00:00:15,108 --> 00:00:17,229
Python is really great
for installing libraries,

6
00:00:17,229 --> 00:00:19,447
because it's really
easy to instal libraries

7
00:00:19,447 --> 00:00:22,135
as long as the library has been enabled

8
00:00:22,135 --> 00:00:25,731
to work with the central
library management system

9
00:00:25,731 --> 00:00:27,130
in Python.

10
00:00:27,130 --> 00:00:31,297
This central system is accessed
via a command called pip.

11
00:00:33,179 --> 00:00:37,586
Pip is what allows us to easily
instal libaries in Python.

12
00:00:37,586 --> 00:00:40,059
There are other ways of
installing libraries, too,

13
00:00:40,059 --> 00:00:42,341
but fortunately Flask works with pip,

14
00:00:42,341 --> 00:00:44,008
so it's really easy.

15
00:00:44,937 --> 00:00:47,607
Normally, you should just use pip.

16
00:00:47,607 --> 00:00:50,322
However, because some students may have

17
00:00:50,322 --> 00:00:53,014
multiple Python versions installed,

18
00:00:53,014 --> 00:00:54,762
if you do pip only,

19
00:00:54,762 --> 00:00:57,555
that will instal packages and libraries

20
00:00:57,555 --> 00:01:00,251
in your Python 2.7 installation

21
00:01:00,251 --> 00:01:02,865
if you have Python 2.7 installed.

22
00:01:02,865 --> 00:01:07,032
Therefore, I recommend you
do pip 3.5 instal flask.

23
00:01:09,805 --> 00:01:12,572
And apologies, "flask" with a
lowercase. That's important.

24
00:01:12,572 --> 00:01:14,591
pip3.5 instal flask.

25
00:01:14,591 --> 00:01:17,151
When we do this, we're gonna instal Flask

26
00:01:17,151 --> 00:01:19,571
for our Python installation,

27
00:01:19,571 --> 00:01:23,522
and this is gonna be the
latest version of Flask.

28
00:01:23,522 --> 00:01:26,573
So just press enter, and
then that will instal it.

29
00:01:26,573 --> 00:01:28,158
In my case, I've already got it installed,

30
00:01:28,158 --> 00:01:30,504
so it's saying requirement
already satisfied,

31
00:01:30,504 --> 00:01:33,097
but when you run pip3.5 instal flask,

32
00:01:33,097 --> 00:01:35,857
it will instal six different libraries,

33
00:01:35,857 --> 00:01:39,582
Flask being one of them,
Werkzeug being another one,

34
00:01:39,582 --> 00:01:43,614
itsdangerous, click,
jinja2, and MarkupSafe,

35
00:01:43,614 --> 00:01:45,593
little really useful parts of Flask,

36
00:01:45,593 --> 00:01:48,774
and we will explore them in due time.

37
00:01:48,774 --> 00:01:50,781
Once that's done, you're
ready to continue,

38
00:01:50,781 --> 00:01:52,064
so congratulations.

39
00:01:52,064 --> 00:01:54,163
Now let's go back into atom,

40
00:01:54,163 --> 00:01:56,870
and let's create our
first Flask application.

41
00:01:56,870 --> 00:01:58,412
I'll see you there.

