INSTALLATION OF VARIOUS PYTHON LIBRARIES
AIM:
To download and install the NumPy, SciPy, Pandas, Matplotlib, Jupyter, and Statsmodels packages
using the pip command in Linux.
ALGORITHM:
1. Open the Terminal in your Linux system.
2. Use the pip install <module_name> command to install the required Python packages.
PYTHON LIBRARY – DEFINITION:
A Python library is a reusable collection of modules and packages containing pre-written functions and
tools designed to perform common programming tasks efficiently, helping developers save time and
effort.
IMPORTANT PYTHON LIBRARIES:
Library Primary Use Case
NumPy Scientific Computing
Pandas Data Analysis
SciPy Scientific Computing
Matplotlib Data Visualization
Jupyter Interactive Computing
Statsmodel Statistical Modeling & Testing
s
BRIEF DESCRIPTION OF IMPORTANT LIBRARIES:
NumPy: Supports large multidimensional arrays and matrices, with efficient mathematical
operations.
Pandas: Powerful data structures for data manipulation and analysis.
SciPy: Modules for optimization, linear algebra, signal and image processing, etc.
Matplotlib: Used to create static, interactive, and animated plots in Python.
Jupyter: A web-based interface for interactive computing and data visualization.
Statsmodels: Provides tools for statistical modeling and hypothesis testing.
ABOUT PIP:
pip is the Python package installer.
It is used to install and manage additional libraries from PyPI.
TERMINAL COMMANDS (LINUX):
# Check pip version
python3 -m pip --version
# Install or upgrade pip (if not already installed)
sudo apt update
sudo apt install python3-pip
# Install NumPy
python3 -m pip install numpy
# Install SciPy
python3 -m pip install scipy
# Install Pandas
python3 -m pip install pandas
# Install Matplotlib
python3 -m pip install matplotlib
# Install Jupyter Notebook
python3 -m pip install notebook
# Install statsmodels
python3 -m pip install statsmodels
# Upgrade pip (optional)
python3 -m pip install --upgrade pip
RESULT:
Hence, the required Python libraries were successfully installed on a Linux system using the pip
command.