Skip to main content

Installing Dagster Guide

This guide will walk you through the steps to install Dagster, a data orchestrator for machine learning, analytics, and ETL. Follow the instructions below to get started with Dagster on your local machine.

Prerequisites

Before you begin, ensure you have the following prerequisites installed on your system:

  • Python 3.7 or higher, Python 3.11 is recommended
  • pip (Python package installer)

Setup a Virtual Environment

After installing Python, it's a good idea to setup a virtual environment to isolate your Dagster project from the rest of your system.

There are many ways to setup a virtual environment. One method that requires no additional dependencies is to use venv.

python -m venv .venv
source .venv/bin/activate

pyenv and pyenv-virtualenv are more powerful tools that can help you manage multiple versions of Python on a single machine. You can learn more about them here.

Install Dagster

To install Dagster in your virtual environment, open your terminal and run the following command:

pip install dagster dagster-webserver

This command will install the core Dagster library and the webserver, which is used to serve the Dagster UI.

Verify Installation

To verify that Dagster is installed correctly, you can run the following command:

dagster --version

You should see the version numbers of Dagster printed in the terminal.

> dagster --version
dagster, version 1.7.6

If you see dagster, version 1!0+dev, then you have the development version of Dagster installed. You can choose to install the latest stable version by providing a version to the pip install command.

For example, to install version 1.7.6, you can run:

pip install 'dagster==1.7.6'

Conclusion

Congratulations! You have successfully installed Dagster

Troubleshooting

If you encounter any issues during the installation process, please refer to the Dagster GitHub repository for troubleshooting or reach out to the Dagster community for further assistance.

Next Steps