Confused at the mixing of uv and pip/venv instructions in Quick Start guide
#71000
Replies: 1 comment 1 reply
|
The guide is currently mixing two alternative paths. If you choose A consistent # Airflow requires Linux/WSL2 on Windows
export AIRFLOW_HOME=~/airflow
mkdir -p $AIRFLOW_HOME
cd $AIRFLOW_HOME
# Install uv using its official installation guide, then:
PYTHON_VERSION=3.12
AIRFLOW_VERSION=3.3.0
uv python install $PYTHON_VERSION
uv venv --python $PYTHON_VERSION airflow_venv
source airflow_venv/bin/activate
CONSTRAINT_URL=https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt
uv pip install apache-airflow==${AIRFLOW_VERSION} --constraint $CONSTRAINT_URL
airflow version
airflow standaloneThe The current Airflow quick start lists Python 3.10–3.14 as supported: https://airflow.apache.org/docs/apache-airflow/stable/start.html. So your reading is correct: step 2 should show the |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
In the Quick Start guide for Airflow, I'm confused at how the steps for installation via
uvandpip/venvare mixed together.Step 2 says to install airflow in a virtual environment using
uvinstead ofpipandvenv. It then links instructions on how to installuv, but doesn't list the commands to run for installing Airflow withuv. Instead, the next listed commands are on how to install usingpipandvenv. But then, step 3 lists how to install Airflow using the constraints file usinguv, which seems like a repeat of what step 2 already said to do.When I try installing
uvwithcurl -LsSf https://astral.sh/uv/install.sh | shas instructed in step 2, then running theuvcommand to install airflow in step 3, I get an errorCommand 'python' not found. I believe the issue is that the Python installation step is bundled in with Step 2's code, but that code was explained as how to install withpipandvenv, rather than being explained as required foruvinstallation.What is the correct order of steps to follow when installing with
uv?All reactions