Third party Modules
2 min read ·
Third party modules are libraries created by other developers and are not included with Python by default. They extend Python’s capabilities and help solve real-world problems efficiently.
Installing using pip
pip is the package manager used to install third-party modules.You can also install specific versions:
Note
Make sure Python and pip are properly installed and configured in your system.
Example: requests Module
Used for making HTTP requests (API calls, web data fetching).
Example: numpy Module
Used for numerical computations and working with arrays.
Pro Tip
Always use alias like np for numpy, as it is a widely accepted convention.
Checking Installed Packages
Upgrading a Package
Uninstalling a Package
Why Third party Modules are Important
- Save development time
- Provide advanced features
- Reduce complexity
- Used in real world applications
Examples:
- Web development
- Data science
- Machine learning
- Automation
Caution
Only install trusted packages to avoid security risks.
Exercise
- Install requests module
- Make an API call and print response
- Install numpy and create an array
- Perform one operation on the array