So, like most cases, we need to read the documentation.
So here, I'm sitting at basically the python.org documentation
on how to install Python modules.
And it has some initial checks to [INAUDIBLE] that describes some of
the important term.
You should read over that and understand what we talked about.
It is the preferred installer program.
We talked about the Python packaging index in the previous programming tip.
That thing that we really going to need to understand is the basic usage.
So if you look at this, the way we're going to install a package using pip is
we're going to need to go to the command line and run the following command,
python -m pip Install the name of the package.
So what's going to happen is Python is going to help you install the package.
Now if you haven't ever run anything from the command line, spend a few minutes,
I'll give you a few hints about how to do this.
But first thing we'll talk about is actually how to get a command prompt
inside your computer, I'll do it for Windows and
have a call out that will say a little about how to do it on Macs.
And then the second thing is, we're going to have to make sure when we run
that command that your computer knows where your Python directory is, and so
we'll talk a little bit about how to find out where your Python installation is.
Okay, let's do that.
Okay, the first we need to do if we want to run PIP is we need to get
a command prompt to actually run the command.
So let's do what we always do we went to Google here.
I said, how do I get a command prompt in Windows and it says what I can do.
I can press the windows key plus R and I will be there.
And it pops up a little thing says to run up something.
And it says run CMD, I'm going to say OK.
And sure enough I get this black window.
And what it is this is a basically command prompt.
It lets me run commands from the command line.
And those commands are textual strings that are going to tell the computer
what to do.
One of the nice things here is this is the default directory,
this is my home directory here.
And if you remember, when we talked about file systems, basically there's always
a director in and and then we can navigate around inside that file system by going to
parent directories and also going down to the child directories.
So there's some commands you should know when you're working with file systems in
Windows, the DIR command has a listing of everything inside the directory here.
I could look here, let's see, here's my Dropbox folder, so
I can change directories to that by saying, cd, and
then actually I'm going to say Dr and hit Tab, and it'll complete that for me.
And notice now I'm down in my Dropbox directory.
And here's my Dropbox directory.
I have a bunch of directories including one for Python Scripting.
So let's just change to that.
I'll say Py Tab, and let's do a directory of that.
And here you can see basically all the files that I've put together for
this particular course.
So you've done that, we've figured out how to turn navigate around on your computer
inside the file system, now let's talk about how we actually run that command.