Anik Das

Apr 05, 2025 • 1 min read

Quickstart Guide: Installing Miniconda on Windows, macOS, and Linux

Quickstart Guide: Installing Miniconda on Windows, macOS, and Linux

Miniconda is a lightweight alternative to Anaconda, giving you full control over your Python environment with a minimal installation size. This guide walks you through a quick and silent installation of Miniconda on Windows, macOS, and Linux.


Why Use Miniconda Instead of Anaconda?

  • Lightweight: Miniconda is much smaller than Anaconda.

  • Flexible: Install only the packages you need.

  • Efficient: Ideal for scripting, automation, and low-resource systems.

  • Production Ready: Common in production and containerized environments.


🖥️ Windows Installation

Using Command Prompt (CMD)

curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o .\miniconda.exe
start /wait "" .\miniconda.exe /S
del .\miniconda.exe

Using PowerShell

wget "https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe" -outfile ".\miniconda.exe"
Start-Process -FilePath ".\miniconda.exe" -ArgumentList "/S" -Wait
del .\miniconda.exe

Note: This performs a silent installation. You can customize the location or add Miniconda to PATH by adjusting the installer flags.


🍎 macOS Installation

mkdir -p ~/miniconda3
curl -o ~/miniconda3/miniconda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh

🐿 Linux Installation

mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh

✅ Post-Installation Setup

Activate Conda

source ~/miniconda3/bin/activate

Initialize Conda for All Shells

conda init --all

Restart your terminal or shell for changes to take effect.


🔮 Verify Installation

Run:

conda --version

Expected output:

conda 24.3.0

📌 Optional: Create Your First Conda Environment

conda create --name dsenv python=3.11
conda activate dsenv

🔹 Conclusion

Miniconda offers a fast and efficient way to manage Python environments. With just a few commands, you can have a fully functional environment for data science, development, or production-ready Python projects.

Join Anik on Peerlist!

Join amazing folks like Anik and thousands of other people in tech.

Create Profile

Join with Anik’s personal invite link.

0

10

0