1.
Introduction
Arjun needs to set up his system for data analysis and visualization. For
this purpose, he installs three essential Python libraries:
NumPy
Pandas
Matplotlib
These libraries help in numerical computation, data manipulation, and
visualization.
2. Source of Packages
The packages were downloaded from the official Python package
repository:
Python Package Index (PyPI)
Accessed using the pip package manager
3. Installation Process
Step 1: Install Python
Ensure Python is installed. Check using:
Copy code
Bash
python --version
Step 2: Install Libraries using pip
Run the following commands in terminal/command prompt:
Copy code
Bash
pip install numpy
pip install pandas
pip install matplotlib
Step 3: Install All at Once (Optional)
Copy code
Bash
pip install numpy pandas matplotlib
4. Verification Process
After installation, Arjun verifies the packages using Python.
Step 1: Open Python Interpreter
Copy code
Bash
python
Step 2: Import Libraries
Copy code
Python
import numpy
import pandas
import matplotlib
Step 3: Check Versions
Copy code
Python
print(numpy.__version__)
print(pandas.__version__)
print(matplotlib.__version__)
If no errors occur, installation is successful.
5. Sample Test Program
Copy code
Python
import numpy as np
import pandas as pd
import [Link] as plt
# NumPy test
arr = [Link]([1, 2, 3])
print(arr)
# Pandas test
data = [Link]({'A': [1, 2], 'B': [3, 4]})
print(data)
# Matplotlib test
[Link]([1, 2, 3], [4, 5, 6])
[Link]()
6. Conclusion
Arjun successfully installed NumPy, Pandas, and Matplotlib using pip from
PyPI. The installation was verified by importing the libraries and running a
test program.