- 1 year ago
How to install apache airflow on windows without docker without enabling windows linux subsystem on pycharm
To install Apache Airflow on Windows without Docker and without enabling Windows Subsystem for Linux (WSL), you can follow these steps:
Install Python:
- Download and install Python from the official Python website: https://www.python.org/downloads/.
- Make sure to select the option to add Python to the system PATH during the installation process.
Set up a virtual environment (optional but recommended):
Open a command prompt or PowerShell window.
Create a new directory for your Airflow project (e.g.,
my-airflow-project
) and navigate to it.Run the following command to create a new virtual environment:
bashpython -m venv venv
Activate the virtual environment by running the appropriate command based on your command prompt:
Command Prompt:
bashvenv\Scripts\activate.bat
PowerShell:
bashvenv\Scripts\Activate.ps1
Install Apache Airflow and its dependencies:
Run the following command to install Apache Airflow using pip:
bashpip install apache-airflow
This command will also install the necessary dependencies.
Initialize the Airflow database:
Run the following command to initialize the Airflow database:
bashairflow db init
Start the Airflow scheduler and web server:
Run the following command to start the Airflow scheduler:
bashairflow scheduler
Open a new command prompt or PowerShell window.
Activate the virtual environment (if not already activated).
Run the following command to start the Airflow web server:
bashairflow webserver
Access the Airflow web interface:
- Open a web browser and go to
http://localhost:8080
. - You should see the Airflow web interface, where you can manage and schedule your workflows.
- Open a web browser and go to
Note: By default, Apache Airflow uses SQLite as the database backend, which is suitable for development and testing purposes. For production use, it is recommended to configure a more robust database backend such as PostgreSQL or MySQL.
These steps should help you install and run Apache Airflow on Windows without Docker and without enabling Windows Subsystem for Linux (WSL).