『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2575|回复: 2

[求助] 求助:Failed to build ciso8601 cryptography ruamel.yaml multidict

[复制链接]

1

主题

26

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
205
HASS币
0
发表于 2021-5-3 17:55:44 | 显示全部楼层 |阅读模式
  Building wheel for ciso8601 (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-41vcmvgb/ciso8601_ae4181e2b4514a8f8506dace0292073b/setup.py'"'"'; __file__='"'"'/tmp/pip-install-41vcmvgb/ciso8601_ae4181e2b4514a8f8506dace0292073b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3h1qz3k_
       cwd: /tmp/pip-install-41vcmvgb/ciso8601_ae4181e2b4514a8f8506dace0292073b/
  Complete output (18 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'ciso8601/__init__.py' not found (or not a regular file)
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/ciso8601
  copying ciso8601/__init__.pyi -> build/lib.linux-aarch64-3.7/ciso8601
  copying ciso8601/py.typed -> build/lib.linux-aarch64-3.7/ciso8601
  running build_ext
  building 'ciso8601' extension
  creating build/temp.linux-aarch64-3.7
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.7-S24Hay/python3.7-3.7.0~b3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DCISO8601_VERSION=2.1.3 -I/usr/include/python3.7m -c module.c -o build/temp.linux-aarch64-3.7/module.o
  module.c:1:10: fatal error: Python.h: No such file or directory
   #include <Python.h>
            ^~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for ciso8601
  Running setup.py clean for ciso8601
  Building wheel for cryptography (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmprkza7e_t
       cwd: /tmp/pip-install-41vcmvgb/cryptography_243dde4243844ba289fab073624357a9
  Complete output (142 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/cryptography
  copying src/cryptography/exceptions.py -> build/lib.linux-aarch64-3.7/cryptography
  copying src/cryptography/__init__.py -> build/lib.linux-aarch64-3.7/cryptography
  copying src/cryptography/__about__.py -> build/lib.linux-aarch64-3.7/cryptography
  copying src/cryptography/utils.py -> build/lib.linux-aarch64-3.7/cryptography
  copying src/cryptography/fernet.py -> build/lib.linux-aarch64-3.7/cryptography
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat
  copying src/cryptography/hazmat/_oid.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat
  copying src/cryptography/hazmat/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat
  copying src/cryptography/hazmat/_der.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat
  creating build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/general_name.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/extensions.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/oid.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/base.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/certificate_transparency.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/ocsp.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  copying src/cryptography/x509/name.py -> build/lib.linux-aarch64-3.7/cryptography/x509
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/backends
  copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends
  copying src/cryptography/hazmat/backends/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/padding.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  copying src/cryptography/hazmat/primitives/poly1305.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings
  copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/poly1305.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/backends/openssl
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/kdf
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/asymmetric
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/twofactor
  copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/twofactor
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/ciphers
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/serialization
  copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/primitives/serialization
  creating build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings/openssl
  copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.linux-aarch64-3.7/cryptography/hazmat/bindings/openssl
  running egg_info
  writing src/cryptography.egg-info/PKG-INFO
  writing dependency_links to src/cryptography.egg-info/dependency_links.txt
  writing requirements to src/cryptography.egg-info/requires.txt
  writing top-level names to src/cryptography.egg-info/top_level.txt
  adding license file 'LICENSE.PSF' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE.APACHE' (matched pattern 'LICEN[CS]E*')
  adding license file 'LICENSE.BSD' (matched pattern 'LICEN[CS]E*')
  adding license file 'AUTHORS.rst' (matched pattern 'AUTHORS*')
  reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  no previously-included directories found matching 'docs/_build'
  warning: no previously-included files found matching 'vectors'
  warning: no previously-included files matching '*' found under directory 'vectors'
  warning: no previously-included files found matching 'azure-pipelines.yml'
  warning: no previously-included files found matching '.azure-pipelines'
  warning: no previously-included files found matching '.travis.yml'
  warning: no previously-included files found matching '.travis'
  warning: no previously-included files matching '*' found under directory '.azure-pipelines'
  warning: no previously-included files matching '*' found under directory '.travis'
  warning: no previously-included files found matching 'release.py'
  warning: no previously-included files found matching '.coveragerc'
  warning: no previously-included files found matching 'codecov.yml'
  warning: no previously-included files found matching 'dev-requirements.txt'
  warning: no previously-included files found matching 'rtd-requirements.txt'
  warning: no previously-included files found matching 'tox.ini'
  writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
  running build_ext
  generating cffi module 'build/temp.linux-aarch64-3.7/_padding.c'
  creating build/temp.linux-aarch64-3.7
  generating cffi module 'build/temp.linux-aarch64-3.7/_constant_time.c'
  generating cffi module 'build/temp.linux-aarch64-3.7/_openssl.c'
  building '_openssl' extension
  creating build/temp.linux-aarch64-3.7/build
  creating build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.7-S24Hay/python3.7-3.7.0~b3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c build/temp.linux-aarch64-3.7/_openssl.c -o build/temp.linux-aarch64-3.7/build/temp.linux-aarch64-3.7/_openssl.o -Wconversion -Wno-error=sign-conversion
  build/temp.linux-aarch64-3.7/_openssl.c:50:14: fatal error: pyconfig.h: No such file or directory
   #    include <pyconfig.h>
                ^~~~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for cryptography
  Building wheel for ruamel.yaml (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-41vcmvgb/ruamel-yaml_2f40e9180e3b40fcaa9a7da61c5f6b90/setup.py'"'"'; __file__='"'"'/tmp/pip-install-41vcmvgb/ruamel-yaml_2f40e9180e3b40fcaa9a7da61c5f6b90/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-dwsswk8e
       cwd: /tmp/pip-install-41vcmvgb/ruamel-yaml_2f40e9180e3b40fcaa9a7da61c5f6b90/
  Complete output (50 lines):
  sys.argv ['/tmp/pip-install-41vcmvgb/ruamel-yaml_2f40e9180e3b40fcaa9a7da61c5f6b90/setup.py', 'bdist_wheel', '-d', '/tmp/pip-wheel-dwsswk8e']
  test compiling test_ruamel_yaml
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/ruamel
  copying .ruamel/__init__.py -> build/lib.linux-aarch64-3.7/ruamel
  creating build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./main.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./anchor.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./scalarstring.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./composer.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./emitter.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./__init__.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./comments.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./serializer.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./tokens.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./nodes.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./dumper.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./constructor.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./configobjwalker.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./scalarbool.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./parser.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./util.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./compat.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./scalarint.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./scalarfloat.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./cyaml.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./resolver.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./events.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./reader.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./timestamp.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./representer.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./loader.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./scanner.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./error.py -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./LICENSE -> build/lib.linux-aarch64-3.7/ruamel/yaml
  copying ./py.typed -> build/lib.linux-aarch64-3.7/ruamel/yaml
  running build_ext
  building '_ruamel_yaml' extension
  creating build/temp.linux-aarch64-3.7
  creating build/temp.linux-aarch64-3.7/ext
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.7-S24Hay/python3.7-3.7.0~b3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c ext/_ruamel_yaml.c -o build/temp.linux-aarch64-3.7/ext/_ruamel_yaml.o
  ext/_ruamel_yaml.c:4:10: fatal error: Python.h: No such file or directory
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for ruamel.yaml
  Running setup.py clean for ruamel.yaml
  Building wheel for multidict (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp4cma2284
       cwd: /tmp/pip-install-41vcmvgb/multidict_1dc558f4609b4ce9b76b25a14308c0ae
  Complete output (48 lines):
  **********************
  * Accellerated build *
  **********************
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-aarch64-3.7
  creating build/lib.linux-aarch64-3.7/multidict
  copying multidict/__init__.py -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/_abc.py -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/_compat.py -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/_multidict_base.py -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/_multidict_py.py -> build/lib.linux-aarch64-3.7/multidict
  running egg_info
  writing multidict.egg-info/PKG-INFO
  writing dependency_links to multidict.egg-info/dependency_links.txt
  writing top-level names to multidict.egg-info/top_level.txt
  adding license file 'LICENSE' (matched pattern 'LICENSE')
  reading manifest file 'multidict.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  warning: no previously-included files matching '*.pyc' found anywhere in distribution
  warning: no previously-included files found matching 'multidict/_multidict.html'
  warning: no previously-included files found matching 'multidict/*.so'
  warning: no previously-included files found matching 'multidict/*.pyd'
  warning: no previously-included files found matching 'multidict/*.pyd'
  no previously-included directories found matching 'docs/_build'
  writing manifest file 'multidict.egg-info/SOURCES.txt'
  copying multidict/__init__.pyi -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/_multidict.c -> build/lib.linux-aarch64-3.7/multidict
  copying multidict/py.typed -> build/lib.linux-aarch64-3.7/multidict
  creating build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/defs.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/dict.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/istr.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/iter.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/pair_list.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  copying multidict/_multilib/views.h -> build/lib.linux-aarch64-3.7/multidict/_multilib
  running build_ext
  building 'multidict._multidict' extension
  creating build/temp.linux-aarch64-3.7
  creating build/temp.linux-aarch64-3.7/multidict
  aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.7-S24Hay/python3.7-3.7.0~b3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c multidict/_multidict.c -o build/temp.linux-aarch64-3.7/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
  multidict/_multidict.c:1:10: fatal error: Python.h: No such file or directory
   #include "Python.h"
            ^~~~~~~~~~
  compilation terminated.
  error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for multidict
Failed to build ciso8601 cryptography ruamel.yaml multidict
ERROR: Could not build wheels for cryptography, multidict which use PEP 517 and cannot be installed directly


回复

使用道具 举报

1

主题

26

帖子

231

积分

中级会员

Rank: 3Rank: 3

积分
231
金钱
205
HASS币
0
 楼主| 发表于 2021-5-3 17:56:59 | 显示全部楼层
升级python3.7后出错
回复

使用道具 举报

0

主题

3

帖子

32

积分

新手上路

Rank: 1

积分
32
金钱
29
HASS币
0
发表于 2022-1-16 04:21:51 来自手机 | 显示全部楼层
解决了嘛
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 21:51 , Processed in 0.142094 second(s), 25 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表