Welcome back, everyone, in this lecture, we're going to discuss installing packages by installing
Python, either from Python dot org or through Visual Studio code or through the Anaconda distribution.
You've already also installed what's known as PIP.
PIP is a simple way to download packages at your command line directly from the Papy repository.
There are packages already created for almost any case you can think of.
A quick Google search will usually help you discover a link to the paper page for the package or for
the package documentation.
For example, if you're looking for a package to help you out with Excel, you could Google search Python
Excel package and you'll get several packages and links that you may find useful along with the documentation
pages.
So we're going to do is just quickly show you how to download and install external packages.
This is all going to be done at the command prompt or command line.
If you're on mucosal Linux, this will be done at the terminal.
We're just going to do this at the command line inside a visual studio code, and we'll install the
Django package because we'll be using that in the next section.
Let's check it out.
All right.
So here I am inside a visual studio code.
Before we jump to how to actually do this at the command line, I do want to point out the typical workflow
for figuring out how to install a package.
And what you can do is just do a Google search for Python Plus, either the topic you're looking for
or the specific package name.
So here I'm doing a Google search for Python, Django and pretty much you'll find the either link,
which is the repository that's holding everything to install from or the actual documentation online
page.
So we can go to Django will say, OK, download.
So now I'm Django Project.
Com Forward slash download.
And here you can actually see how to get the official version, which is just pip.
Install Django.
And if you want a specific version of a package library, you can put equals equals and then the actual
version you want.
So maybe you're actually looking to install Django version three point zero, for instance, you would
say PIP install Django equals equals three point zero.
If you just want to install the most up to date latest official version, you should also be able to
say PIP install Django.
Now there's technically also the ability to get the latest development version.
I would not recommend this because this is actually going straight to GitHub and grabbing the absolute
latest, which is technically not associated with any particular version number.
So this is going to be trickier to develop on because this is constantly changing either day to day
or week to week or month to month.
So typically, you're going to want to stick with at least some sort of numbered version.
In fact, let's go ahead and pip install Django for right now.
So I can come here to my command line and say, PIP, install Django, and even just doing this should
actually install the latest version.
If you're looking to install specifically Django for we can say PIP Install Django equals equals 4.0
Enter.
And technically 4.0.
Now you'll notice when I run this, it already says requirement already satisfy for me because I've
already installed Django myself for you.
You may get a prompt that either says yes or no.
Now I want to show you just another quick example of maybe installing a package you find useful.
So what can you do?
Well, you can just search for something like, OK, I want to use Python with Excel.
So you would Google search Python Excel and then you would start getting links here on guides, which
are also going to show you different options for packages.
So maybe we want to actually download Open Excel?
You can check out the documentation or the actual download link.
So each of these packages is being hosted on paper, which you can visit pipefitter or it'll give you
the description.
Some example code, a documentation link, et cetera.
And if you just click on this documentation link here on Read the docs, typically they're going to
have some sort of instruction on how to actually install this, or what you often do is just check out
the installation page.
You'll notice it's actually kind of small here, but you just type out pip install open pixel.
This is just a random example of something you may want to do if you don't find yourself working in
Excel, and we won't in this course.
You may not need to install something like that, but just want to show you how easy it is to run these
sort of commands and just do a Google search for the packages or libraries you're looking for.
All right, that's it for this lecture.
I'll see it the next one.