Skip to content

Commit bf2de26

Browse files
authored
Fix Quick Start installing Airflow 3.1.1 instead of the documented version (#74474)
1 parent 23cd2c8 commit bf2de26

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎airflow-core/docs/start.rst‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This quick start guide will help you bootstrap an Airflow standalone instance on
2828

2929
Officially supported installation methods are ``pip`` or ``uv``.
3030

31-
Run ``pip install apache-airflow[EXTRAS]==AIRFLOW_VERSION --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-AIRFLOW_VERSION/constraints-PYTHON_VERSION.txt"``, for example ``pip install "apache-airflow[celery]==3.0.0" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.0/constraints-3.11.txt"`` to install Airflow in a reproducible way. You can also use - much faster - ``uv`` - by adding ``uv`` before the command.
31+
Run ``pip install apache-airflow[EXTRAS]==AIRFLOW_VERSION --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-AIRFLOW_VERSION/constraints-PYTHON_VERSION.txt"``, for example :subst-code:`pip install "apache-airflow[celery]==|version|" --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-|version|/constraints-3.11.txt"` to install Airflow in a reproducible way. You can also use - much faster - ``uv`` - by adding ``uv`` before the command.
3232

3333

3434

@@ -73,6 +73,7 @@ externally managed environments (PEP 668), so use a virtual environment
7373
before running ``pip install`` commands:
7474

7575
.. code-block:: bash
76+
:substitutions:
7677
7778
# For Windows after WSL2 install, restart computer, then in WSL Ubuntu terminal
7879
sudo apt update
@@ -95,7 +96,7 @@ before running ``pip install`` commands:
9596
pip install --upgrade pip
9697
9798
# Install Airflow with correct Python version constraints
98-
pip install apache-airflow[celery]==3.1.0 --constraint https://raw.githubusercontent.com/apache/airflow/constraints-3.1.0/constraints-3.12.txt
99+
pip install apache-airflow[celery]==|version| --constraint https://raw.githubusercontent.com/apache/airflow/constraints-|version|/constraints-3.12.txt
99100
100101
# Verify installation
101102
airflow version
@@ -106,14 +107,14 @@ before running ``pip install`` commands:
106107
:substitutions:
107108
108109
109-
AIRFLOW_VERSION=3.1.1
110+
AIRFLOW_VERSION=|version|
110111
111112
# Extract the version of Python you have installed. If you're currently using a Python version that is not supported by Airflow, you may want to set this manually.
112113
# See above for supported versions.
113114
PYTHON_VERSION="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
114115
115116
CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt"
116-
# For example this would install 3.1.1 with python 3.11: https://raw.githubusercontent.com/apache/airflow/constraints-|version|/constraints-3.11.txt
117+
# For example this would install |version| with python 3.11: https://raw.githubusercontent.com/apache/airflow/constraints-|version|/constraints-3.11.txt
117118
118119
uv pip install "apache-airflow==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}"
119120

0 commit comments

Comments
 (0)