小编Rya*_*yan的帖子

尝试使用 pip 下载 apache airflow 但在“为收集的包构建轮子:google-re2”时弹出错误

我使用的是 MacOS Mojave、Python 3.8.3 和 pip 23.2。\n我创建了一个 py_env,激活它,然后运行

\n
pip install apache-airflow==2.6.3' \\\n --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.3/constraints-3.8.txt".\n
Run Code Online (Sandbox Code Playgroud)\n

起初我遇到一个错误,说找不到文件“pybind11”。我通过运行 python -m pip install pybind11 安装了 pybind11,但现在出现多个未知类型错误和其他错误。

\n
python setup.py bdist_wheel did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [140 lines of output]\nrunning bdist_wheel\nrunning build\nrunning build_py\ncreating build\ncreating build/lib.macosx-10.9-x86_64-cpython-38\ncopying re2.py -> build/lib.macosx-10.9-x86_64-cpython-38\nrunning build_ext\nbuilding '_re2' extension\ncreating build/temp.macosx-10.9-x86_64-cpython-38\ngcc -Wno-unused-result -Wsign-compare -Wunreachable-code -\nDNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -\nI/Users/chu/opt/anaconda3/include -arch x86_64 -\nI/Users/chu/opt/anaconda3/include -arch x86_64 -\nI/Users/chu/Desktop/Airflow_test/py_env/lib/python3.8/site-\npackages/pybind11/include -\nI/Users/chu/Desktop/Airflow_test/py_env/include -\nI/Users/chu/opt/anaconda3/include/python3.8 -c _re2.cc -o\nbuild/temp.macosx-10.9-x86_64-cpython-38/_re2.o -fvisibility=hidden\nIn file included from _re2.cc:11:\n...\n/Users/chu/Desktop/Airflow_test/py_env/lib/python3.8/site-\npackages/pybind11/include/pybind11/detail/common.h:688:18: warning: …
Run Code Online (Sandbox Code Playgroud)

airflow

5
推荐指数
1
解决办法
4259
查看次数

标签 统计

airflow ×1