首页 > 解决方案 > 在 Ubuntu 20.04、Errno 2 上安装 Airflow Pip

问题描述

我在 Windows 10 上运行的 Ubuntu 20.4 上不断收到此错误:

ERROR: Could not open requirements file: [Errno 2] No such file or directory: ''

我的命令:

AIRFLOW_VERSION=2.1.4
PYTHON_VERSION="$(python3 --version | cut -d " " -f 2 | cut -d "." -f 1-2)" CONSTRAINT_URL="https://raw.githubusercontent.com/apache/airflow/constraints-${AIRFLOW_VERSION}/constraints-${PYTHON_VERSION}.txt" pip install "apache-airflow[async,postgres,google,amazon,ssh,sftp]==${AIRFLOW_VERSION}" --constraint "${CONSTRAINT_URL}

它让我发疯,我认为它与安装命令无关,与 pip 有关?我检查并在 /user/bin 上安装了 pip3,我也运行了sudo apt-get install python-setuptools, 和update命令。任何想法如何解决它?

标签: pythonubuntupipairflowerrno

解决方案


推荐阅读