Introduction
Dagster is a modern data orchestration platform that helps you build, schedule, and monitor data pipelines. In this guide, we'll walk through two ways to install Dagster on a Windows machine using pip:
- Via WSL (Windows Subsystem for Linux) - Recommended
- Directly on Native Windows - Without WSL
Prerequisites
Before we begin, make sure you have:
- Python 3.10 or higher installed (Python 3.13 is recommended) 1
- A stable internet connection
- Basic familiarity with the terminal/command prompt
Method 1: Installing Dagster via WSL (Recommended) 🐧
WSL (Windows Subsystem for Linux) lets you run a Linux environment directly on Windows. This is the recommended approach because Dagster works best in a Linux-like environment.
Step 1: Install WSL
Open PowerShell as Administrator and run:
wsl --install
This will install WSL with Ubuntu by default. Restart your computer when prompted.
Step 2: Set Up Ubuntu
After restarting:
- Open Ubuntu from the Start Menu
- Create a username and password when prompted
- Update your packages:
sudo apt update && sudo apt upgrade -y
Step 3: Install Python
Check if Python is already installed:
python3 --version
If not installed or version is below 3.10, run:
sudo apt install python3 python3-pip python3-venv -y
Step 4: Create Your Dagster Project Folder
Create and navigate into a project folder:
mkdir my-dagster-project
cd my-dagster-project
Step 5: Create a Virtual Environment
python3 -m venv .venv
Step 6: Activate the Virtual Environment
source .venv/bin/activate
You should see (.venv) appear at the beginning of your terminal line. ✅
Step 7: Install Dagster Using pip
Now install Dagster and its dependencies: 2
pip install dagster dagster-webserver dagster-dg-cli
This installs:
-
dagster- The core Dagster library -
dagster-webserver- The Dagster UI -
dagster-dg-cli- Thedgcommand line tool
Step 8: Scaffold a Dagster Project
Use the create-dagster CLI to scaffold a new project: 3
create-dagster project my-project
cd my-project
Step 9: Install Project Dependencies
pip install --editable . --group dev
Note: The
--groupargument requires pip 25.1 or higher. If you have an older version, upgrade pip first: 4
pip install --upgrade pip
Step 10: Verify the Installation
dg --version
You should see the version number printed in your terminal. 5
Step 11: Launch Dagster
dg dev
Open your browser and go to 👉 http://127.0.0.1:3000
Every Time You Return (WSL) 🔁
cd my-dagster-project/my-project
source .venv/bin/activate
dg dev
Method 2: Installing Dagster on Native Windows (Without WSL) 🪟
If you prefer not to use WSL, you can install Dagster directly on Windows using Command Prompt or PowerShell.
Step 1: Install Python
- Go to python.org/downloads
- Download Python 3.13 (recommended) 6
- Run the installer
- ✅ Important: Check "Add Python to PATH" during installation
Verify the installation:
python --version
Step 2: Upgrade pip
Make sure you have the latest version of pip: 7
pip install --upgrade pip
Step 3: Create Your Dagster Project Folder
mkdir my-dagster-project
cd my-dagster-project
Step 4: Create a Virtual Environment
python -m venv .venv
Step 5: Activate the Virtual Environment
.venv\Scripts\activate
You should see (.venv) appear at the beginning of your terminal line. ✅
Step 6: Install Dagster Using pip
pip install dagster dagster-webserver dagster-dg-cli
Step 7: Scaffold a Dagster Project
create-dagster project my-project
cd my-project
Step 8: Install Project Dependencies
pip install --editable . --group dev
Note: The
--groupargument requires pip 25.1 or higher. If you have an older version, omit--group devand install the CLI separately: 9
pip install dagster-dg-cli
Step 9: Verify the Installation
dg --version
You should see the version number of dg printed. 10
Step 10: Launch Dagster
dg dev
Open your browser and go to 👉 http://127.0.0.1:3000
Every Time You Return (Native Windows) 🔁
cd my-dagster-project\my-project
.venv\Scripts\activate
dg dev
WSL vs Native Windows: Which Should You Choose?
| Factor | WSL 🐧 | Native Windows 🪟 |
|---|---|---|
| Recommended by Dagster | ✅ Yes | ⚠️ Works but less common |
| Ease of Setup | Moderate | Easy |
| Performance | Better | Good |
| Linux Commands | ✅ Supported | ❌ Not supported |
| Community Support | ✅ More resources | ⚠️ Limited |
| Best For | Developers & Data Engineers | Beginners on Windows |
Troubleshooting Common Issues 🔧
❌ dg command not found
Make sure your virtual environment is activated:
- WSL:
source .venv/bin/activate - Windows:
.venv\Scripts\activate
❌ Python version too old
Make sure you have Python 3.10+ installed. 11
❌ pip version too old
Upgrade pip with:
pip install --upgrade pip
❌ Port 3000 already in use
Run Dagster on a different port:
dg dev -p 8080
❌ Still stuck?
Reach out to the Dagster community for help at dagster.io/community 12
Summary
| Step | WSL 🐧 | Native Windows 🪟 |
|---|---|---|
| Install Python | sudo apt install python3 |
Download from python.org |
| Create venv | python3 -m venv .venv |
python -m venv .venv |
| Activate venv | source .venv/bin/activate |
.venv\Scripts\activate |
| Install Dagster | pip install dagster dagster-webserver dagster-dg-cli |
pip install dagster dagster-webserver dagster-dg-cli |
| Launch UI | dg dev |
dg dev |
You are now ready to start building amazing data pipelines with Dagster! 🚀
Happy orchestrating! 🎉
Top comments (0)