Introduction
If you are starting with Python for data science or machine learning, setting up your environment can feel confusing. Installing packages, managing versions, and handling dependencies can quickly become messy.
This is where Anaconda and Conda come in.
In this guide, you will learn:
What Anaconda is and why it is useful
How to install it step-by-step
Difference between Anaconda and Miniconda
How Conda works (with simple examples)
Managing environments like a pro
Jupyter Notebook vs JupyterLab
This guide simplifies everything so you can start working quickly without frustration.
What is Anaconda?
Anaconda is a Python distribution specially designed for:
Data Science
Machine Learning
Analytics
It comes with:
Python pre-installed
Important libraries like NumPy, pandas, scikit-learn
Tools like Jupyter Notebook
👉 This means you don’t need to install everything separately.
As mentioned in the content , Anaconda saves time by handling dependencies and compatibility issues automatically.
How to Install Anaconda
Follow these simple steps:
Step 1: Download
Go to:
https://www.anaconda.com/products/distribution
Click Skip Registration if prompted
Download 64-bit version
Step 2: Choose OS
Select your system:
Windows
macOS
Linux
Step 3: Run Installer
Windows/macOS: Open the downloaded file and follow instructions
Linux: Run:
bash Anaconda3-*.sh
Step 4: Verify Installation
Open terminal or Anaconda Prompt and run:
conda --version
If you see a version number → ✅ Installation successful
Anaconda vs Miniconda
Miniconda
Lightweight version
Only includes:
conda
pip
No pre-installed libraries
Example:
conda install numpy
Anaconda
Full package
Includes:
NumPy
pandas
matplotlib
many more
👉 After installing Anaconda, libraries are already available.
Simple Comparison
Feature | Miniconda | Anaconda |
|---|---|---|
Size | Small | Large |
Libraries | Manual install | Pre-installed |
Best For | Advanced users | Beginners |
👉 Recommendation:
Beginners → Anaconda
Advanced users → Miniconda
Adding Conda to Path (Windows)
Sometimes conda doesn’t work in all terminals.
Automatic Method
conda init
Then restart terminal.
Manual Method
Add these paths to Environment Variables:
C:\Users\<YourUsername>\Anaconda3\Scripts
C:\Users\<YourUsername>\Anaconda3\bin
👉 This ensures conda works everywhere.
What is Conda?
Conda = Package Manager + Environment Manager
Think of it like a recipe manager.
As explained in the content :
Different Python versions = Different ingredients
Different package versions = Different taste
👉 Conda lets you control everything per project.
Managing Environments with Conda
1. Check Environments
conda env list
2. Create Environment
conda create -n myenv
With specific Python version:
conda create -n myenv python=3.11
3. Activate Environment
conda activate myenv
4. Install Packages
conda install -c conda-forge numpy
👉 -c conda-forge = external package source
5. Deactivate Environment
conda deactivate
Practical Developer Tips
✅ Always Follow This Flow
Create environment
Activate it
Install packages
✅ Use Separate Environments
Example:
Project A → Python 3.8
Project B → Python 3.11
👉 Avoid conflicts
✅ Use conda-forge
Updated packages
More options
❌ Common Mistakes
Installing packages in base environment
Forgetting to activate environment
Mixing pip and conda randomly
Anaconda Navigator (GUI Tool)
Anaconda Navigator is a graphical interface.
You can:
Launch Jupyter
Manage environments
Install packages
How to Open
Windows → Search "Anaconda Navigator"
Linux/macOS:
anaconda-navigator
👉 Good for beginners who don’t like terminal.
Jupyter Notebook vs JupyterLab
What is Jupyter?
An interactive tool for:
Writing code
Visualization
Documentation
Jupyter Notebook
Simple interface
One notebook at a time
Best for:
Learning
Quick experiments
Run:
jupyter notebook
JupyterLab
Advanced interface
Multiple tabs and panels
Better file management
Run:
jupyter lab
Key Differences
Feature | Notebook | JupyterLab |
|---|---|---|
Interface | Simple | Advanced |
Tabs | No | Yes |
Extensions | Limited | Many |
Use Case | Beginners | Projects |
When to Use What?
Notebook → Learning, tutorials
JupyterLab → Real projects
👉 JupyterLab is more powerful and future-ready.
Real-World Example
Imagine you are working on:
Project 1: Data Analysis
Python 3.8
pandas, numpy
Project 2: Machine Learning
Python 3.11
TensorFlow
👉 Using Conda:
Create separate environments
Avoid breaking dependencies
Summary
Anaconda simplifies Python setup
Conda helps manage environments and packages
Always use separate environments for projects
JupyterLab is better for real-world workflows
Miniconda is lightweight, Anaconda is beginner-friendly
👉 If you are just starting → Go with Anaconda + JupyterLab