Library Install Command Category Reason to Use Remarks
Foundation for numerical
Numerical The backbone of most
NumPy pip install numpy operations, N-dimensional
Computing scientific Python libraries
arrays, math functions
DataFrames for structured data,
Data Most widely used for data
Pandas pip install pandas CSV/Excel handling, data
Manipulation analysis and wrangling
cleaning
2D/3D plotting, charts, The standard plotting
pip install
Matplotlib Visualization histograms, customizable library; pairs well with
matplotlib
graphs NumPy & Pandas
pip install Statistical data visualization Cleaner, more aesthetic
Seaborn Visualization
seaborn built on top of Matplotlib plots with less code
Advanced math: integration, Extends NumPy for scientific
Scientific
SciPy pip install scipy optimization, signal processing, and engineering
Computing
statistics computations
ML algorithms: regression, Best beginner-friendly ML
pip install scikit- Machine
Scikit-learn classification, clustering, model library; extensive
learn Learning
evaluation documentation
Developed by Google; great
pip install Building and training neural
TensorFlow Deep Learning for production-level DL
tensorflow networks at scale
models
Preferred in academia;
Dynamic neural network
PyTorch pip install torch Deep Learning more Pythonic than
building, research-friendly
TensorFlow
Now integrated with
High-level API for building
Keras pip install keras Deep Learning TensorFlow; great for rapid
neural networks
prototyping
pip install Computer Image/video processing, object Industry standard for
OpenCV
opencv-python Vision detection, transformations computer vision tasks
Simpler alternative to
Image Open, edit, save images in
Pillow pip install Pillow OpenCV for basic image
Processing various formats
tasks
pip install Statistical modeling, hypothesis Great for econometrics and
Statsmodels Statistics
statsmodels testing, time-series analysis advanced statistical testing
Extremely popular in Kaggle
pip install Machine Gradient boosting for
XGBoost competitions; high
xgboost Learning structured/tabular data
performance
Faster and more memory-
pip install Machine Fast gradient boosting
LightGBM efficient than XGBoost on
lightgbm Learning framework by Microsoft
large datasets
Library Install Command Category Reason to Use Remarks
Good for learning NLP
Text processing, tokenization,
NLTK pip install nltk NLP fundamentals; extensive
stemming, parsing
corpora
Industrial-strength NLP: NER,
Faster and more
spaCy pip install spacy NLP POS tagging, dependency
production-ready than NLTK
parsing
Go-to library for working
pip install Pre-trained models (BERT, GPT,
Transformers NLP / LLMs with state-of-the-art
transformers etc.) from Hugging Face
language models
Great for building
Interactive, web-based charts
Plotly pip install plotly Visualization interactive visualizations in
and dashboards
notebooks or web apps
Scales Pandas/NumPy
Parallel computing for larger-
Dask pip install dask Big Data workflows to multi-core or
than-memory datasets
distributed systems
Works with MySQL,
pip install ORM for database interactions
SQLAlchemy Database PostgreSQL, SQLite, and
sqlalchemy with Python objects
more
The most popular Python
pip install Simplifies HTTP requests (GET,
Requests Web / HTTP library for web API
requests POST, etc.)
interaction
pip install Parse and extract data from Easy to use; pairs well with
BeautifulSoup Web Scraping
beautifulsoup4 HTML/XML requests for web scraping
Better suited for large-scale
Full-featured web crawling and
Scrapy pip install scrapy Web Scraping scraping projects than
scraping framework
BeautifulSoup
Web Build fast REST APIs with Modern, async-ready; great
FastAPI pip install fastapi
Framework automatic docs generation for ML model serving
Web Lightweight web framework for Simple and flexible; ideal for
Flask pip install flask
Framework APIs and web apps small to medium projects
Tip: You can install multiple libraries at once:
Or use a [Link] file to manage all dependencies in one go.