Course Content

Using Modules & Pip In Python

Sometimes we have to use someone else’s code in our program because it saves a lot of our time. Today, we will learn a technique to use code that is not written by us but will enhance the quality of our program, save us time, and of course, it is legal and free.

Let us understand what utilities like module and pip are

Module – Module or library is a file that contains definitions of several functions, classes, variables, etc. which is written by someone else for us to use for free.

Pip – Pip is a package manager in python i.e. pip command is used to download any external module in python. It is something like which helps us to get something from somewhere.

We can install any module in our system by using pip command :

  • Simply open cmd or Powershell in your system.
  • And then type pip install module_name and press enter.
  • Once you do that, the module will start downloading and will install automatically on your computer.

Example, for installing flask I will do something like this:

After the pressing enter key you will see something like this:

After installing any module in python you can import it in your program or in your Python projects. For example, to use flask I will say import flask at the top of my Python program.

import flask

There are 2 types of modules in Python :

  • Built-in Modules:

Built-in modules are the modules that are pre-installed in python i.e. there is no need to download them before using. These modules come with python interpreter itself.

Example – random, os etc.

To get a complete list of built-in modules of python head to the following page of the official documentation -

  • External Modules:

These are the modules that are not pre-installed in python i.e. we need to download them before using in our program.

Example – Flask, Pandas, TensorFlow, etc.

That's all about modules in Python. I hope you are enjoying this course. Please make sure to subscribe to CodeWithHarry on YouTube if you think my efforts and this content is helpful.


Raheel123 11 months ago
Amazing Sir !
harry 7 months, 2 weeks ago
Raheel123 6 months ago
you are welcome!
Raheel123 6 months ago
Hello! I wanna need cheats list for C++ programing Please Can you send or share with me Kindly,thanks for you I am Raheel from Pakistan
Vivek-Mishra 1 month ago
Full Notes and Source Code:
Vivek-Mishra 1 month ago
Remaining Codes will be updated Soon. Thanks, Harry Bhai for Awesome Tutorials
hakeem143 5 days, 8 hours ago
Thank you for helping us Bhai.
wbaig390 3 days, 6 hours ago
sir, I'm facing problems as i type pip install flask


  1. File - Download here
  2. File - Download here

Course Announcements

Any Course related announcements will be posted here