大佬教程收集整理的这篇文章主要介绍了安装 apache-airflow 时出错:“无法为使用 PEP 517 且无法直接安装的 setproctitle 构建轮子”,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在寻找安装 apache-airflow 的帮助。
我使用的是 MacOS 10.15.7,Python 版本 3.8.2,但我不断收到错误消息:
错误:无法为使用 PEP 517 且无法直接安装的 setproctitle 构建轮子
我曾尝试使用早期版本的 pip 和 python 无济于事。
有谁知道我在这种情况下能做什么?我查看了与这些搜索词相关的所有堆栈溢出问题,但到目前为止,没有一个解决方案对我有用。
任何帮助将不胜感激。
>$ pip install apache-airflow
CollecTing apache-airflow
Using cached apache_airflow-2.0.1-py3-none-any.whl (4.5 MB)
requirement already satisfIEd: pyjwt<2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.7.1)
CollecTing flask-caching<2.0.0,>=1.5.0
Using cached Flask_Caching-1.9.0-py2.py3-none-any.whl (33 kB)
requirement already satisfIEd: jinja2<2.12.0,>=2.10.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.10.3)
requirement already satisfIEd: iso8601>=0.1.12 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.1.12)
requirement already satisfIEd: cryptography>=0.9.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (3.4.6)
requirement already satisfIEd: colorlog>=4.0.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (4.0.2)
requirement already satisfIEd: unicodecsv>=0.14.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.14.1)
CollecTing apache-airflow-provIDers-ftp
Using cached apache_airflow_provIDers_ftp-1.0.1-py3-none-any.whl (14 kB)
requirement already satisfIEd: dill<0.4,>=0.2.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.3.1.1)
CollecTing sqlalchemy<2,>=1.3.18
Using cached sqlAlchemy-1.3.23-cp38-cp38-macosx_10_14_x86_64.whl (1.2 MB)
requirement already satisfIEd: alembic<2.0,>=1.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.4.2)
CollecTing sqlalchemy-JsonfIEld~=1.0
Using cached sqlAlchemy_JsONFIEld-1.0.0-py3-none-any.whl (10 kB)
CollecTing importlib-resources~=1.4
Using cached importlib_resources-1.5.0-py2.py3-none-any.whl (21 kB)
CollecTing requests>=2.20.0
Using cached requests-2.25.1-py2.py3-none-any.whl (61 kB)
requirement already satisfIEd: python-dateutil<3,>=2.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.8.1)
CollecTing apache-airflow-provIDers-imap
Using cached apache_airflow_provIDers_imap-1.0.1-py3-none-any.whl (15 kB)
requirement already satisfIEd: markupsafe<2.0,>=1.1.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.1)
CollecTing python-slugify<5.0,>=3.0.0
Using cached python_slugify-4.0.1-py2.py3-none-any.whl
CollecTing python-daemon>=2.2.4
Using cached python_daemon-2.3.0-py2.py3-none-any.whl (35 kB)
CollecTing tenacity~=6.2.0
Using cached tenacity-6.2.0-py2.py3-none-any.whl (24 kB)
CollecTing flask-appbuilder~=3.1.1
Using cached Flask_AppBuilder-3.1.1-py3-none-any.whl (1.7 MB)
CollecTing cattrs~=1.1
Using cached cattrs-1.3.0-py3-none-any.whl (18 kB)
requirement already satisfIEd: flask-login<0.5,>=0.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.4.1)
CollecTing setproctitle<2,>=1.1.8
Using cached setproctitle-1.2.2.tar.gz (23 kB)
Installing build dependencIEs ... done
GetTing requirements to build wheel ... done
Preparing wheel Metadata ... done
CollecTing python3-openID~=3.2
Using cached python3_openID-3.2.0-py3-none-any.whl (133 kB)
CollecTing attrs<21.0,>=20.0
Using cached attrs-20.3.0-py2.py3-none-any.whl (49 kB)
CollecTing rich==9.2.0
Using cached rich-9.2.0-py3-none-any.whl (164 kB)
CollecTing werkzeug>=1.0.1,~=1.0
Using cached Werkzeug-1.0.1-py2.py3-none-any.whl (298 kB)
requirement already satisfIEd: tabulate<0.9,>=0.7.5 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.8.6)
requirement already satisfIEd: gunicorn<20.0,>=19.5.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (19.10.0)
CollecTing python-nvd3~=0.15.0
Using cached python_nvd3-0.15.0-py3-none-any.whl
requirement already satisfIEd: importlib-Metadata~=1.7 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.7.0)
requirement already satisfIEd: lockfile>=0.12.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.12.2)
CollecTing psutil<6.0.0,>=4.2.0
Using cached psutil-5.8.0-cp38-cp38-macosx_10_9_x86_64.whl (236 kB)
requirement already satisfIEd: croniter<0.4,>=0.3.17 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.3.31)
CollecTing apache-airflow-provIDers-http
Using cached apache_airflow_provIDers_http-1.1.0-py3-none-any.whl (20 kB)
requirement already satisfIEd: pygments<3.0,>=2.0.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.6.1)
requirement already satisfIEd: JsonscheR_30_11845@a~=3.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (3.2.0)
requirement already satisfIEd: graphviz>=0.12 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.13.2)
requirement already satisfIEd: argcomplete~=1.10 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.11.1)
CollecTing connexion[flask,swagger-ui]<3,>=2.6.0
Using cached connexion-2.7.0-py2.py3-none-any.whl (77 kB)
requirement already satisfIEd: lazy-object-proxy in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.4.3)
CollecTing apache-airflow-provIDers-sqlite
Using cached apache_airflow_provIDers_sqlite-1.0.1-py3-none-any.whl (14 kB)
CollecTing marshmallow-oneofscheR_30_11845@a>=2.0.1
Using cached marshmallow_oneofscheR_30_11845@a-2.1.0-py2.py3-none-any.whl (5.7 kB)
requirement already satisfIEd: termcolor>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.0)
CollecTing pendulum~=2.0
Using cached pendulum-2.1.2-cp38-cp38-macosx_10_15_x86_64.whl (124 kB)
requirement already satisfIEd: pandas<2.0,>=0.17.1 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.25.3)
requirement already satisfIEd: markdown<4.0,>=2.5.2 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (2.6.11)
requirement already satisfIEd: flask-wtf<0.15,>=0.14.3 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (0.14.3)
requirement already satisfIEd: cached-property~=1.5 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.5.1)
requirement already satisfIEd: flask<2.0,>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.1)
requirement already satisfIEd: itsdangerous>=1.1.0 in ./airflow-venv/lib/python3.8/site-packages (from apache-airflow) (1.1.0)
requirement already satisfIEd: colorama<0.5.0,>=0.4.0 in ./airflow-venv/lib/python3.8/site-packages (from rich==9.2.0->apache-airflow) (0.4.3)
CollecTing tyPing-extensions<4.0.0,>=3.7.4
Using cached tyPing_extensions-3.7.4.3-py3-none-any.whl (22 kB)
CollecTing commonmark<0.10.0,>=0.9.0
Using cached commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
requirement already satisfIEd: Mako in ./airflow-venv/lib/python3.8/site-packages (from alembic<2.0,>=1.2->apache-airflow) (1.1.2)
requirement already satisfIEd: python-editor>=0.3 in ./airflow-venv/lib/python3.8/site-packages (from alembic<2.0,>=1.2->apache-airflow) (1.0.4)
requirement already satisfIEd: PyYAML>=5.1 in ./airflow-venv/lib/python3.8/site-packages (from connexion[flask,>=2.6.0->apache-airflow) (5.3.1)
CollecTing openAPI-spec-valIDator>=0.2.4
Using cached openAPI_spec_valIDator-0.3.0-py3-none-any.whl (31 kB)
CollecTing inflection>=0.3.1
Using cached inflection-0.5.1-py2.py3-none-any.whl (9.5 kB)
CollecTing clickclick>=1.2
Using cached clickclick-20.10.2-py2.py3-none-any.whl (7.4 kB)
CollecTing swagger-ui-bundle>=0.0.2
Using cached swagger_ui_bundle-0.0.8-py3-none-any.whl (3.8 MB)
requirement already satisfIEd: click>=4.0 in ./airflow-venv/lib/python3.8/site-packages (from clickclick>=1.2->connexion[flask,>=2.6.0->apache-airflow) (6.7)
requirement already satisfIEd: cffi>=1.12 in ./airflow-venv/lib/python3.8/site-packages (from cryptography>=0.9.3->apache-airflow) (1.14.5)
requirement already satisfIEd: pycparser in ./airflow-venv/lib/python3.8/site-packages (from cffi>=1.12->cryptography>=0.9.3->apache-airflow) (2.20)
CollecTing prison<1.0.0,>=0.1.3
Using cached prison-0.1.3-py2.py3-none-any.whl (5.8 kB)
requirement already satisfIEd: marshmallow-sqlalchemy<0.24.0,>=0.22.0 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (0.22.3)
CollecTing APIspec[yaml]<4,>=3.3
Using cached APIspec-3.3.2-py2.py3-none-any.whl (27 kB)
requirement already satisfIEd: marshmallow<4,>=3 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (3.5.1)
CollecTing email-valIDator<2,>=1.0.5
Using cached email_valIDator-1.1.2-py2.py3-none-any.whl (17 kB)
requirement already satisfIEd: marshmallow-enum<2,>=1.5.1 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.5.1)
requirement already satisfIEd: Flask-JWT-Extended<4,>=3.18 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (3.24.1)
requirement already satisfIEd: Flask-OpenID<2,>=1.2.5 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.2.5)
requirement already satisfIEd: flask-babel<2,>=1 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (1.0.0)
requirement already satisfIEd: Flask-sqlAlchemy<3,>=2.4 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (2.4.1)
requirement already satisfIEd: sqlalchemy-utils<1,>=0.32.21 in ./airflow-venv/lib/python3.8/site-packages (from flask-appbuilder~=3.1.1->apache-airflow) (0.36.3)
requirement already satisfIEd: IDna>=2.0.0 in ./airflow-venv/lib/python3.8/site-packages (from email-valIDator<2,>=1.0.5->flask-appbuilder~=3.1.1->apache-airflow) (2.9)
CollecTing dnspython>=1.15.0
Using cached dnspython-2.1.0-py3-none-any.whl (241 kB)
requirement already satisfIEd: pytz in ./airflow-venv/lib/python3.8/site-packages (from flask-babel<2,>=1->flask-appbuilder~=3.1.1->apache-airflow) (2019.3)
requirement already satisfIEd: Babel>=2.3 in ./airflow-venv/lib/python3.8/site-packages (from flask-babel<2,>=1->flask-appbuilder~=3.1.1->apache-airflow) (2.8.0)
requirement already satisfIEd: six in ./airflow-venv/lib/python3.8/site-packages (from Flask-JWT-Extended<4,>=3.18->flask-appbuilder~=3.1.1->apache-airflow) (1.14.0)
requirement already satisfIEd: WTForms in ./airflow-venv/lib/python3.8/site-packages (from flask-wtf<0.15,>=0.14.3->apache-airflow) (2.2.1)
requirement already satisfIEd: zipp>=0.5 in ./airflow-venv/lib/python3.8/site-packages (from importlib-Metadata~=1.7->apache-airflow) (3.4.0)
requirement already satisfIEd: setuptools in ./airflow-venv/lib/python3.8/site-packages (from JsonscheR_30_11845@a~=3.0->apache-airflow) (54.0.0)
requirement already satisfIEd: pyrsistent>=0.14.0 in ./airflow-venv/lib/python3.8/site-packages (from JsonscheR_30_11845@a~=3.0->apache-airflow) (0.15.7)
CollecTing openAPI-scheR_30_11845@a-valIDator
Using cached openAPI_scheR_30_11845@a_valIDator-0.1.4-py3-none-any.whl (7.8 kB)
requirement already satisfIEd: numpy>=1.13.3 in ./airflow-venv/lib/python3.8/site-packages (from pandas<2.0,>=0.17.1->apache-airflow) (1.18.2)
CollecTing pytzdata>=2020.1
Using cached pytzdata-2020.1-py2.py3-none-any.whl (489 kB)
requirement already satisfIEd: docutils in ./airflow-venv/lib/python3.8/site-packages (from python-daemon>=2.2.4->apache-airflow) (0.16)
CollecTing text-unIDecode>=1.3
Using cached text_unIDecode-1.3-py2.py3-none-any.whl (78 kB)
requirement already satisfIEd: defusedxml in ./airflow-venv/lib/python3.8/site-packages (from python3-openID~=3.2->apache-airflow) (0.6.0)
requirement already satisfIEd: urllib3<1.27,>=1.21.1 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (1.25.8)
requirement already satisfIEd: chardet<5,>=3.0.2 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (3.0.4)
requirement already satisfIEd: certifi>=2017.4.17 in ./airflow-venv/lib/python3.8/site-packages (from requests>=2.20.0->apache-airflow) (2019.11.28)
CollecTing isodate
Using cached isodate-0.6.0-py2.py3-none-any.whl (45 kB)
Building wheels for collected packages: setproctitle
Building wheel for setproctitle (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /Users/orange/airflow_tesTing/airflow-venv/bin/python /Users/orange/airflow_tesTing/airflow-venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/gw/f5ssjh4s74x8m0dzzxdj09m40000gn/T/tmp1bbqxe6_
cwd: /private/var/folders/gw/f5ssjh4s74x8m0dzzxdj09m40000gn/T/pip-install-slsvb38c/setproctitle_46b9decf51e14932ad0abe665916f05b
Complete output (119 lines):
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
creaTing build
creaTing build/temp.macosx-10.14.6-x86_64-3.8
creaTing build/temp.macosx-10.14.6-x86_64-3.8/src
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/library/Frameworks/System.framework/Privateheaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/library/Frameworks/python3.framework/Versions/3.8/headers -arch arm64 -arch x86_64 -DSPT_VERSION=1.2.2 -D__darwin__=1 -I/Users/orange/airflow_tesTing/airflow-venv/include -I/library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8 -c src/setproctitle.c -o build/temp.macosx-10.14.6-x86_64-3.8/src/setproctitle.o
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unkNown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* @R_531_10586@l blocks */
^
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unkNown type name '__int32_t'; dID you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unkNown type name '__int32_t'; dID you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_gID_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_ID_t; /* [XSI] pID_t,uID_t,or gID_t*/
^
note: '__uint128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unkNown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unkNown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unkNown type name '__uint16_t'; dID you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unkNown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unkNown type name '__int32_t'; dID you mean '__int128_t'?
typedef __int32_t __darwin_pID_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unkNown type name '__int32_t'; dID you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_uID_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unkNown type name '__uint32_t'; dID you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/setproctitle.c:14:
In file included from src/spt.h:15:
In file included from src/spt_python.h:16:
In file included from /library/Developer/Commandlinetools/library/Frameworks/python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_List.h:31:
/library/Developer/Commandlinetools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
Fatal error: too many errors emitted,stopPing Now [-ferror-limit=]
20 errors generated.
error: command 'clang' Failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for setproctitle
Failed to build setproctitle
ERROR: Could not build wheels for setproctitle which use PEP 517 and cAnnot be installed directly
我使用的是 MacOS 10.15.7 Python 3.8.2 版
我猜您使用的是与 macOS Catalina 捆绑/预安装的 Python 3。
$ which python3
/usr/bin/python3
$ /usr/bin/python3 -V
Python 3.8.2
$ /usr/bin/python3 -m venv airflow-venv
$ source ./airflow-venv/bin/activate
(airflow-venv) $ python -V
Python 3.8.2
(airflow-venv) $ pip -V
pip 19.2.3 from /path/to/airflow-venv/lib/python3.8/site-packages/pip (python 3.8)
(airflow-venv) $ pip install apache-airflow
使用上面的这些命令,我可以重现关于以下内容的相同错误消息:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
众所周知,在安装某些需要编译某些 C 代码的 Python 包时,捆绑的 Python 3.8.2 会导致此类问题。我发现最好使用其他来源提供的 Python:
检查并选择您觉得最舒服的那个。我个人使用 Homebrew:
# Install Homebrew (https://brew.sh/)
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Python3.8
$ brew install python@3.8
$ brew link python@3.8
虽然您现在可以安装的最新 Python 是 3.9,但 installation guide for apache-airflow 提到了支持哪些 Python 和 pip 版本:
请注意,关于 Python 3 的支持,Airflow 2.0.0 已经过 Python 3.6、3.7 和 3.8 的测试,但尚不支持 Python 3.9。
解析器最近(2020 年 11 月)发生了变化,因此目前仅官方支持 20.2.4 版本,尽管您可能会成功使用 20.3.3+ 版本(如果所有初始问题来自 {{1 }} 20.3.0 版本已在 20.3.3 中修复)。为了安装 Airflow,您需要将 pip 降级到 20.2.4 pip
所以请遵循这些建议:
pip install --upgrade pip==20.2.4
然后像以前一样安装$ which python3
/usr/local/bin/python3
$ python3 -V
Python 3.8.8
$ python3 -m venv airflow-venv
$ source ./airflow-venv/bin/activate
(airflow-venv) $ pip -V
pip 20.2.3 from /path/to/airflow-venv/lib/python3.8/site-packages/pip (python 3.8)
(airflow-venv) $ pip install --upgrade pip==20.2.4
...
successfully uninstalled pip-20.2.3
successfully installed pip-20.2.4
:
apache-airflow
,
对我来说,发生了同样的错误 使用自制软件解决。可能是默认的 python 导致了这个问题。 还使用支持的 pip 版本进行气流。我不得不降级 pip 版本
卸载 pip-21.1.1: 成功卸载pip-21.1.1
成功安装 pip-20.2.4 :)
以上是大佬教程为你收集整理的安装 apache-airflow 时出错:“无法为使用 PEP 517 且无法直接安装的 setproctitle 构建轮子”全部内容,希望文章能够帮你解决安装 apache-airflow 时出错:“无法为使用 PEP 517 且无法直接安装的 setproctitle 构建轮子”所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。