Installing Dagster
To follow the steps in this guide, you'll need:
- To install Python 3.9 or higher. Python 3.12 is recommended.
- To install
pip
, a Python package installer
Installing dg
To optimize your Dagster experience, we recommend using dg
—a tool that streamlines the Dagster development workflow and works seamlessly with any Python package manager.
- uv
- pip
First, install the Python package manager uv
if you don't have it:
- Mac
- Windows
- Linux
brew install uv
powershell -ExecutionPolicy ByPass -c 'irm https://astral.sh/uv/install.ps1 | iex'
curl -LsSf https://astral.sh/uv/install.sh | sh
For more detailed uv
installation instructions, see the uv
docs.
Although you can create a virtual environment and install dagster-dg
using uv
, we recommend a global installation for most users. It's simpler, requires only a one-time setup, and offers better support across multiple Python projects.
If you are starting a project from scratch:
mkdir my_project && cd my_project
python -m venv .venv && source .venv/bin/activate
If you're not starting a new project, simply activate your desired virtual environment:
pip install dagster-dg
Verifying dg installation
To verify that dg
is installed correctly, run the following command:
> dg --version
dg, version 0.26.11
Initializing a Dagster project
Once dg
is installed (assuming a global installation), it can manage virtual environments for your Dagster projects. To get started, open your terminal and run:
dg init my-project && cd my-project
- MacOS
- Windows
- Linux
bash source .venv/bin/activate
bash .venv\Scripts\activate
bash source .venv/bin/activate
This command will install the core Dagster library and the webserver, which is used to serve the Dagster UI.
Verifying dagster installation
To confirm that Dagster is installed correctly, run the following command from within your virtual environment. You should see Dagster's version numbers printed in the terminal:
> dagster --version
dagster, version 1.10.11
Troubleshooting
If you encounter any issues during the installation process:
- Refer to the Dagster GitHub repository for troubleshooting, or
- Reach out to the Dagster community
Next steps
- Get up and running with your first Dagster project in the Quickstart
- Learn to create data assets in Dagster