0% found this document useful (0 votes)
12 views2 pages

Datascience Lab Ex1up

The document outlines the installation process for various Python libraries including NumPy, SciPy, Pandas, Matplotlib, Jupyter, and Statsmodels using the pip command in Linux. It provides a brief description of each library's primary use case and includes terminal commands for checking pip version, installing/upgrading pip, and installing the libraries. The result confirms that the libraries were successfully installed on the system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views2 pages

Datascience Lab Ex1up

The document outlines the installation process for various Python libraries including NumPy, SciPy, Pandas, Matplotlib, Jupyter, and Statsmodels using the pip command in Linux. It provides a brief description of each library's primary use case and includes terminal commands for checking pip version, installing/upgrading pip, and installing the libraries. The result confirms that the libraries were successfully installed on the system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

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.

You might also like