Lecture

Importing External Modules

So far, you've worked with Python's built-in modules such as math, random, and datetime.

Beyond these, Python has a large ecosystem of external modules created by the community.


External Modules

External modules are modules that are not included in the standard library.

The key features of external modules are:

  • Add features like web scraping, data analysis, visualization, and machine learning
  • Are published on the Python Package Index (PyPI)
  • Can be installed with the package manager pip

You'll use them whenever you need functionality that is not included in the standard library.


Examples

Some examples of external modules are:

  • requests: send HTTP requests
  • openpyxl: work with Excel files
  • pandas: data analysis
  • matplotlib: plot charts

Instead of building everything from scratch, you import and reuse these modules. This saves time and helps prevent errors.

Quiz
0 / 1

What tool do you use to install external Python modules?

Python external modules can be installed using .
npm
pip
brew
apt

Lecture

AI Tutor

Design

Upload

Notes

Favorites

Help