简体   繁体   English

如何在运行 Big Sur 11.0.1 的 Mac 上安装 Apache Airflow?

[英]How do I install Apache Airflow on a Mac running Big Sur 11.0.1?

When I run pip3 install apache-airflow (I used brew install python to install the latest version of Python locally first), I get a number of errors while building wheels for psutil and setproctitle ending with the following:当我运行pip3 install apache-airflow (我使用brew install python首先在本地安装最新版本的 Python )时,我在为 psutil 和 setproctitle 构建轮子时遇到了许多错误,结尾如下:

ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly

Running the command with the --use-deprecated legacy-resolver indicated in the note on the start page has the same result.使用起始页注释中指示的--use-deprecated legacy-resolver运行命令具有相同的结果。

What else am I missing that is preventing a successful install on Airflow on my machine?我还缺少什么会阻止在我的机器上成功安装 Airflow?

Which python version do you have?你有哪个 python 版本? And what airflow version do you wish to install?您希望安装什么 airflow 版本?

Since you said you've upgraded to the latest python version, I'm assuming you have 3.9.1.既然你说你已经升级到最新的 python 版本,我假设你有 3.9.1。 on your local machine.在您的本地计算机上。

Airflow is not supporting python 3.9 so you will need to use an older version of python. Airflow 不支持 python 3.9 ,因此您需要使用旧版本的 python。 I used python 3.7 to install airflow 1.10.10 (after which you can patch up to the latest version 2.0).我使用 python 3.7 安装 airflow 1.10.10(之后您可以修补到最新版本 2.0)。

If using pip does not work (like what happened to me), try using pyenv to install python earlier versions.如果使用pip不起作用(就像我发生的那样),请尝试使用pyenv安装 python 早期版本。 You might also (re)install zlib to get it to work brew reinstall zlib bzip2您还可以(重新)安装 zlib 以使其正常工作brew reinstall zlib bzip2

Since I had no pyenv installed, I had to go through the pain of upgrading homebrew to be able to do this ( see steps here in case you need it )由于我没有安装pyenv ,我不得不通过升级自制软件的痛苦来 go 才能做到这一点( 如果需要,请参阅此处的步骤

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 构建失败:如何使用 Pyenv 在 macOS Big Sur 版本 11.0.1 上安装 Python 3.8.3? - Build Failure: How to use Pyenv to install Python 3.8.3 on macOS Big Sur version 11.0.1? 应用程序未在 macOS Big Sur 11.0.1 上弹出 - Apps not popping up on macOS Big Sur 11.0.1 你如何实际安装 Apache 气流 - How do you actually install Apache airflow 如何在没有 Anaconda 的 Mac OS(Big Sur、Catalina、Mojave)上安装 TensorFlow 2.X? - How to install TensorFlow 2.X on Mac OS (Big Sur, Catalina, Mojave) without Anaconda? Opencv imshow 在 macOS 11.0.1 (Big Sur) 上使 python 启动器崩溃 - Opencv imshow crashes python launcher on macOS 11.0.1 (Big Sur) Anaconda 安装在 Mac Big Sur Python 无法打开 - Anaconda install on Mac Big Sur Python cannot be opened 如何将 Apache Airflow 导入 Intellij? - How do I import Apache Airflow into Intellij? AttributeError 在 Mac 11.0.1 上运行 Django 网站 - AttributeError running Django site on Mac 11.0.1 如何安装Apache spark并使其与Kafka一起运行? - How do I install Apache spark and get it up and running with Kafka? 如何在 MySQL Workbench for Mac (Big Sur) 中添加路径到系统路径 - How to add a path to the system path in MySQL Workbench for Mac (Big Sur)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM