[英]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.