CIT PYTHON COHORT THREE
  • CIT Python Cloud Software Engineering
  • week one
    • What is Python
    • Python Syntax
    • variables
    • Numbers / Integers
  • week Two
    • Control Flow Statements
      • If Statements
      • For Loops
      • While Loops
      • Break and Continue Statements
    • Operators
      • Assignment Operators
      • Arithmetic Operators
      • Comparison Operators
      • Logical Operators
      • Relational Operators
      • Bitwise Operators
      • Identity Operators
      • Membership Operators
    • Data Types
      • Strings
      • Numbers
      • Booleans
      • Lists
      • Dictionaries
      • Tuples
      • Sets
  • Week 3
    • Functions
      • Function Arguments
      • Python Recursion
      • Python Anonymous/Lambda Function
    • Object Oriented Programming
      • Classes
      • Inheritance
      • Polymorphism
      • Abstraction
      • Encapsulation
    • Python Modules
      • Python Packages
      • Python Built-in Modules
      • Python Standard Library
      • Python Third Party Modules
    • Python Exceptions
      • Python Try Except
      • Python Raise
      • Python Assert
      • Python User-defined Exceptions
  • Week 4
    • Python File Handling
  • Week6
    • Data Structures and Algorithms
      • DSA Introduction
      • What is an Algorithm?
      • Data Structures and Types
      • Stack
      • Queue
      • Linked List
      • Bubble Sort Algorithm
      • Selection Sort Algorithm
      • Insertion Sort Algorithm
      • Merge Sort Algorithm
      • Quick Sort Algorithm
  • Week8
    • Cryptography
      • Reverse Cipher
      • Caesar Cipher
      • Hash Functions
        • Applications of Hash Functions
        • Examples of Hash Functions
  • Assignments and Solutions
    • Loops
Powered by GitBook
On this page
  • What is a Third Party Module?
  • Installing Third Party Modules
  • Using Third Party Modules
  • Additional Resources

Was this helpful?

Edit on GitHub
  1. Week 3
  2. Python Modules

Python Third Party Modules

This module introduces the concept of third-party modules and how to install them.

PreviousPython Standard LibraryNextPython Exceptions

Last updated 2 years ago

Was this helpful?

What is a Third Party Module?

This refers to a module that is not part of the Python Standard Library. These modules are developed by third-party developers and are available for use in your Python programs. They are usually installed using the Python Package Manager, pip.

Installing Third Party Modules

To install a third-party module, you need to know the name of the module and use the following syntax:

pip install <module_name>

For example, to install the requests module, you would use the following command:

pip install requests

Note: You may need to use pip3 instead of pip depending on your system configuration as well as need to use sudo before the pip command depending on your system configuration.

Note: You need to create a virtual environment before installing third-party modules. You can learn more about virtual environments in the module.

Using Third Party Modules

Once you have installed a third-party module, you can use it in your Python programs. For example, to use the requests module, you would use the following syntax:

import requests

Additional Resources

Python Virtual Environments
Python Package Index
Python Requests Module
Python Requests Module Tutorial
Python Requests Module Quickstart
Python Requests Module API Reference