1
00:00:05,300 --> 00:00:11,120
Welcome back, everyone, in this lecture, we're going to discuss installing packages by installing

2
00:00:11,120 --> 00:00:16,790
Python, either from Python dot org or through Visual Studio code or through the Anaconda distribution.

3
00:00:17,060 --> 00:00:19,730
You've already also installed what's known as PIP.

4
00:00:20,180 --> 00:00:25,400
PIP is a simple way to download packages at your command line directly from the Papy repository.

5
00:00:26,710 --> 00:00:30,040
There are packages already created for almost any case you can think of.

6
00:00:30,490 --> 00:00:35,080
A quick Google search will usually help you discover a link to the paper page for the package or for

7
00:00:35,080 --> 00:00:36,280
the package documentation.

8
00:00:36,790 --> 00:00:42,520
For example, if you're looking for a package to help you out with Excel, you could Google search Python

9
00:00:42,520 --> 00:00:48,160
Excel package and you'll get several packages and links that you may find useful along with the documentation

10
00:00:48,160 --> 00:00:48,640
pages.

11
00:00:49,690 --> 00:00:53,650
So we're going to do is just quickly show you how to download and install external packages.

12
00:00:54,160 --> 00:00:56,620
This is all going to be done at the command prompt or command line.

13
00:00:56,950 --> 00:00:59,470
If you're on mucosal Linux, this will be done at the terminal.

14
00:00:59,710 --> 00:01:04,510
We're just going to do this at the command line inside a visual studio code, and we'll install the

15
00:01:04,510 --> 00:01:07,240
Django package because we'll be using that in the next section.

16
00:01:07,420 --> 00:01:08,110
Let's check it out.

17
00:01:08,350 --> 00:01:08,590
All right.

18
00:01:08,590 --> 00:01:10,570
So here I am inside a visual studio code.

19
00:01:10,840 --> 00:01:15,580
Before we jump to how to actually do this at the command line, I do want to point out the typical workflow

20
00:01:15,580 --> 00:01:17,350
for figuring out how to install a package.

21
00:01:17,770 --> 00:01:23,500
And what you can do is just do a Google search for Python Plus, either the topic you're looking for

22
00:01:23,530 --> 00:01:25,240
or the specific package name.

23
00:01:25,570 --> 00:01:31,150
So here I'm doing a Google search for Python, Django and pretty much you'll find the either link,

24
00:01:31,330 --> 00:01:37,180
which is the repository that's holding everything to install from or the actual documentation online

25
00:01:37,180 --> 00:01:37,600
page.

26
00:01:37,600 --> 00:01:40,870
So we can go to Django will say, OK, download.

27
00:01:41,170 --> 00:01:42,720
So now I'm Django Project.

28
00:01:42,720 --> 00:01:44,050
Com Forward slash download.

29
00:01:44,380 --> 00:01:48,550
And here you can actually see how to get the official version, which is just pip.

30
00:01:48,550 --> 00:01:49,540
Install Django.

31
00:01:49,810 --> 00:01:56,140
And if you want a specific version of a package library, you can put equals equals and then the actual

32
00:01:56,140 --> 00:01:56,980
version you want.

33
00:01:57,370 --> 00:02:02,170
So maybe you're actually looking to install Django version three point zero, for instance, you would

34
00:02:02,170 --> 00:02:04,990
say PIP install Django equals equals three point zero.

35
00:02:05,350 --> 00:02:10,000
If you just want to install the most up to date latest official version, you should also be able to

36
00:02:10,000 --> 00:02:12,040
say PIP install Django.

37
00:02:12,430 --> 00:02:16,080
Now there's technically also the ability to get the latest development version.

38
00:02:16,390 --> 00:02:21,190
I would not recommend this because this is actually going straight to GitHub and grabbing the absolute

39
00:02:21,220 --> 00:02:24,970
latest, which is technically not associated with any particular version number.

40
00:02:25,210 --> 00:02:30,340
So this is going to be trickier to develop on because this is constantly changing either day to day

41
00:02:30,340 --> 00:02:31,630
or week to week or month to month.

42
00:02:31,840 --> 00:02:35,890
So typically, you're going to want to stick with at least some sort of numbered version.

43
00:02:36,280 --> 00:02:39,250
In fact, let's go ahead and pip install Django for right now.

44
00:02:40,440 --> 00:02:47,460
So I can come here to my command line and say, PIP, install Django, and even just doing this should

45
00:02:47,460 --> 00:02:48,900
actually install the latest version.

46
00:02:49,350 --> 00:02:54,990
If you're looking to install specifically Django for we can say PIP Install Django equals equals 4.0

47
00:02:55,950 --> 00:02:56,420
Enter.

48
00:02:56,760 --> 00:02:58,110
And technically 4.0.

49
00:02:58,500 --> 00:03:03,210
Now you'll notice when I run this, it already says requirement already satisfy for me because I've

50
00:03:03,210 --> 00:03:05,950
already installed Django myself for you.

51
00:03:05,970 --> 00:03:08,760
You may get a prompt that either says yes or no.

52
00:03:09,480 --> 00:03:14,250
Now I want to show you just another quick example of maybe installing a package you find useful.

53
00:03:14,730 --> 00:03:15,870
So what can you do?

54
00:03:16,110 --> 00:03:20,400
Well, you can just search for something like, OK, I want to use Python with Excel.

55
00:03:20,790 --> 00:03:25,740
So you would Google search Python Excel and then you would start getting links here on guides, which

56
00:03:25,740 --> 00:03:29,010
are also going to show you different options for packages.

57
00:03:29,430 --> 00:03:32,490
So maybe we want to actually download Open Excel?

58
00:03:32,820 --> 00:03:36,360
You can check out the documentation or the actual download link.

59
00:03:36,810 --> 00:03:42,870
So each of these packages is being hosted on paper, which you can visit pipefitter or it'll give you

60
00:03:42,870 --> 00:03:43,840
the description.

61
00:03:44,250 --> 00:03:47,630
Some example code, a documentation link, et cetera.

62
00:03:48,030 --> 00:03:53,070
And if you just click on this documentation link here on Read the docs, typically they're going to

63
00:03:53,070 --> 00:03:59,190
have some sort of instruction on how to actually install this, or what you often do is just check out

64
00:03:59,190 --> 00:04:00,060
the installation page.

65
00:04:00,300 --> 00:04:05,370
You'll notice it's actually kind of small here, but you just type out pip install open pixel.

66
00:04:05,700 --> 00:04:09,210
This is just a random example of something you may want to do if you don't find yourself working in

67
00:04:09,210 --> 00:04:10,920
Excel, and we won't in this course.

68
00:04:11,130 --> 00:04:14,910
You may not need to install something like that, but just want to show you how easy it is to run these

69
00:04:14,910 --> 00:04:19,050
sort of commands and just do a Google search for the packages or libraries you're looking for.

70
00:04:19,589 --> 00:04:21,000
All right, that's it for this lecture.

71
00:04:21,029 --> 00:04:21,839
I'll see it the next one.

