Managing Python Dependencies Transcripts
Chapter: Managing Third-Party Dependencies With pip
Lecture: pip: The Python Package Manager

Login or purchase this course to watch this video and the rest of the course contents.
0:01 The recommended package manager for Python is called pip.
0:04 Now, before I go into a little bit more detail on pip,
0:07 I want to explain to you first what packages in Python are.
0:10 I am going to use the following definition here.
0:13 So a package is a bundle of software, to be installed into a Python environment.
0:18 And typically, this would include things like third party libraries and frameworks.
0:23 And I am sure you've heard about some of those, for example,
0:26 Django would be a popular package in the Python world,
0:29 and so would be Requests, the HTTP download library.
0:33 And then, there is Numpy, another very popular package
0:36 that includes tons of different libraries and frameworks
0:39 for number crunching and data science.
0:42 Time to talk about pip, the Python package manager.
0:45 Pip comes with any modern Python install,
0:48 it's included by default with the rest of the Python standard library
0:52 and things like the Python interpreter,
0:56 pip's main interface is a command line tool, also called pip.
0:59 I am going to show you how to access pip from the command line now.
1:03 I am in my terminal here, and now I am going to run a quick version check on pip,
1:07 alright, you can see here that it tells
1:12 me exactly which version of pip I've got installed,
1:15 and it also tells me where this version of pip lives right now.
1:19 So, here I am running Python 3.6 on Mac OS
1:22 and pip tells me that it's using this install
1:25 with the Python 3.6 site packages directory.
1:29 Pip's command line interface also has a help command.
1:33 Running the help command will show you all of the available subcommands
1:38 you can use with pip and you are going to learn
1:41 how to use the most important pip commands here in the course.