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

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

[基础教程] pip3 install -U homeassistant 安装出错

[复制链接]

4

主题

20

帖子

84

积分

注册会员

Rank: 2

积分
84
金钱
64
HASS币
0
发表于 2018-11-5 22:40:42 | 显示全部楼层 |阅读模式
homeassistant) homeassistant@localhost:/home/ppwtz$ pip3 install -U homeassistant
Collecting homeassistant
  Using cached https://files.pythonhosted.org/p ... .6-py3-none-any.whl
Requirement already satisfied, skipping upgrade: astral==1.6.1 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (1.6.1)
Requirement already satisfied, skipping upgrade: pytz>=2018.04 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (2018.5)
Requirement already satisfied, skipping upgrade: aiohttp==3.4.4 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (3.4.4)
Collecting PyJWT==1.6.4 (from homeassistant)
  Using cached https://files.pythonhosted.org/p ... y2.py3-none-any.whl
Requirement already satisfied, skipping upgrade: requests==2.20.0 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (2.20.0)
Collecting cryptography==2.3.1 (from homeassistant)
  Using cached https://files.pythonhosted.org/p ... graphy-2.3.1.tar.gz
Requirement already satisfied, skipping upgrade: certifi>=2018.04.16 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (2018.10.15)
Requirement already satisfied, skipping upgrade: voluptuous==0.11.5 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (0.11.5)
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.0.0 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (2.0.0)
Requirement already satisfied, skipping upgrade: pyyaml<4,>=3.13 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (3.13)
Requirement already satisfied, skipping upgrade: attrs==18.2.0 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (18.2.0)
Collecting bcrypt==3.1.4 (from homeassistant)
  Using cached https://files.pythonhosted.org/p ... bcrypt-3.1.4.tar.gz
Requirement already satisfied, skipping upgrade: jinja2>=2.10 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (2.10)
Requirement already satisfied, skipping upgrade: pip>=8.0.3 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (18.1)
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /srv/homeassistant/lib/python3.6/site-packages (from homeassistant) (3.0.1)
Requirement already satisfied, skipping upgrade: yarl<2.0,>=1.0 in /srv/homeassistant/lib/python3.6/site-packages (from aiohttp==3.4.4->homeassistant) (1.1.0)
Requirement already satisfied, skipping upgrade: chardet<4.0,>=2.0 in /srv/homeassistant/lib/python3.6/site-packages (from aiohttp==3.4.4->homeassistant) (3.0.4)
Requirement already satisfied, skipping upgrade: idna-ssl>=1.0; python_version < "3.7" in /srv/homeassistant/lib/python3.6/site-packages (from aiohttp==3.4.4->homeassistant) (1.1.0)
Requirement already satisfied, skipping upgrade: multidict<5.0,>=4.0 in /srv/homeassistant/lib/python3.6/site-packages (from aiohttp==3.4.4->homeassistant) (4.4.2)
Requirement already satisfied, skipping upgrade: urllib3<1.25,>=1.21.1 in /srv/homeassistant/lib/python3.6/site-packages (from requests==2.20.0->homeassistant) (1.22)
Requirement already satisfied, skipping upgrade: idna<2.8,>=2.5 in /srv/homeassistant/lib/python3.6/site-packages (from requests==2.20.0->homeassistant) (2.7)
Requirement already satisfied, skipping upgrade: asn1crypto>=0.21.0 in /srv/homeassistant/lib/python3.6/site-packages (from cryptography==2.3.1->homeassistant) (0.24.0)
Requirement already satisfied, skipping upgrade: six>=1.4.1 in /srv/homeassistant/lib/python3.6/site-packages (from cryptography==2.3.1->homeassistant) (1.11.0)
Collecting cffi!=1.11.3,>=1.7 (from cryptography==2.3.1->homeassistant)
  Using cached https://files.pythonhosted.org/p ... /cffi-1.11.5.tar.gz
Requirement already satisfied, skipping upgrade: MarkupSafe>=0.23 in /srv/homeassistant/lib/python3.6/site-packages (from jinja2>=2.10->homeassistant) (1.0)
Requirement already satisfied, skipping upgrade: pycparser in /srv/homeassistant/lib/python3.6/site-packages (from cffi!=1.11.3,>=1.7->cryptography==2.3.1->homeassistant) (2.19)
Building wheels for collected packages: cryptography, bcrypt, cffi
  Running setup.py bdist_wheel for cryptography ... error
  Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-zady7x64 --python-tag cp36:
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
      self.build()
    File "/usr/lib/python3.6/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
      _build_ext.run(self)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-6j2izt98/cffi-1.11.5/setup.py", line 240, in <module>

    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
      run_setup(setup_script, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
      raise
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-6j2izt98/cffi-1.11.5/setup.py", line 240, in <module>

    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-cl03y186/cryptography/setup.py", line 318, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in setup
      _install_setup_requires(attrs)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve
      replace_conflicting=replace_conflicting
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1060, in best_match
      return self.obtain(req, installer)
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1072, in obtain
      return installer(requirement)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 702, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
  Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
      self.build()
    File "/usr/lib/python3.6/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
      _build_ext.run(self)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-c6xl9vl2/cffi-1.11.5/setup.py", line 240, in <module>

    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
      run_setup(setup_script, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
      raise
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-c6xl9vl2/cffi-1.11.5/setup.py", line 240, in <module>

    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-cl03y186/cryptography/setup.py", line 318, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in setup
      _install_setup_requires(attrs)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve
      replace_conflicting=replace_conflicting
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1060, in best_match
      return self.obtain(req, installer)
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1072, in obtain
      return installer(requirement)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 702, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
Failed cleaning build dir for cryptography
  Running setup.py bdist_wheel for bcrypt ... error
  Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/bcrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-o64c1flh --python-tag cp36:
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
      self.build()
    File "/usr/lib/python3.6/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
      _build_ext.run(self)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-81vdi9lo/cffi-1.11.5/setup.py", line 240, in <module>
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
      run_setup(setup_script, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
      raise
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-81vdi9lo/cffi-1.11.5/setup.py", line 240, in <module>
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-cl03y186/bcrypt/setup.py", line 238, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in setup
      _install_setup_requires(attrs)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve
      replace_conflicting=replace_conflicting
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1060, in best_match
      return self.obtain(req, installer)
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1072, in obtain
      return installer(requirement)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 702, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for bcrypt
  Running setup.py clean for bcrypt
  Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/bcrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
      extra_postargs)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
      spawn(cmd, dry_run=self.dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 36, in spawn
      _spawn_posix(cmd, search_path, dry_run=dry_run)
    File "/usr/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
      % (cmd, exit_status))
  distutils.errors.DistutilsExecError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3.6/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
      cmd = self.call_command('install_lib', warn_dir=0)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
      self.run_command(cmdname)
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
      self.build()
    File "/usr/lib/python3.6/distutils/command/install_lib.py", line 109, in build
      self.run_command('build_ext')
    File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_command
      cmd_obj.run()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
      _build_ext.run(self)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 339, in run
      self.build_extensions()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 448, in build_extensions
      self._build_extensions_serial()
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 473, in _build_extensions_serial
      self.build_extension(ext)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
      _build_ext.build_extension(self, ext)
    File "/usr/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
      depends=ext.depends)
    File "/usr/lib/python3.6/distutils/ccompiler.py", line 574, in compile
      self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    File "/usr/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
      raise CompileError(msg)
  distutils.errors.CompileError: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-wleq9i7d/cffi-1.11.5/setup.py", line 240, in <module>
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
      run_setup(setup_script, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
      raise
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
      self.gen.throw(type, value, traceback)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
      saved_exc.resume()
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
      six.reraise(type, exc, self._tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
      raise value.with_traceback(tb)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
      yield saved
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
      yield
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
      _execfile(setup_script, ns)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
      exec(code, globals, locals)
    File "/tmp/easy_install-wleq9i7d/cffi-1.11.5/setup.py", line 240, in <module>
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.6/distutils/core.py", line 163, in setup
      raise SystemExit("error: " + str(msg))
  SystemExit: error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-cl03y186/bcrypt/setup.py", line 238, in <module>
      **keywords_with_side_effects(sys.argv)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in setup
      _install_setup_requires(attrs)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
      replace_conflicting=True,
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 777, in resolve
      replace_conflicting=replace_conflicting
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1060, in best_match
      return self.obtain(req, installer)
    File "/srv/homeassistant/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1072, in obtain
      return installer(requirement)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
      return cmd.easy_install(req)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
      return self.install_item(spec, dist.location, tmpdir, deps)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 702, in install_item
      dists = self.install_eggs(spec, download, tmpdir)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
      return self.build_and_install(setup_script, setup_base)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
      self.run_setup(setup_script, setup_base, args)
    File "/srv/homeassistant/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
      raise DistutilsError("Setup script exited with %s" % (v.args[0],))
  distutils.errors.DistutilsError: Setup script exited with error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
Failed cleaning build dir for bcrypt
  Running setup.py bdist_wheel for cffi ... error
  Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-09w2js0e --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-armv7l-3.6
  creating build/lib.linux-armv7l-3.6/cffi
  copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
  copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
  running build_ext
  building '_cffi_backend' extension
  creating build/temp.linux-armv7l-3.6
  creating build/temp.linux-armv7l-3.6/c
  arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -I/srv/homeassistant/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
  c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for cffi
  Running setup.py clean for cffi
Failed to build cryptography bcrypt cffi
Installing collected packages: PyJWT, cffi, cryptography, bcrypt, homeassistant
  Running setup.py install for cffi ... error
    Complete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-wodzdote/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.6/cffi:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.6
    creating build/lib.linux-armv7l-3.6/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/error.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-3.6/cffi
    copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.6/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-3.6
    creating build/temp.linux-armv7l-3.6/c
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.6m -I/srv/homeassistant/include/python3.6m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.6/c/_cffi_backend.o
    c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-cl03y186/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-wodzdote/install-record.txt --single-version-externally-managed --compile --install-headers /srv/homeassistant/include/site/python3.6/cffi" failed with error code 1 in /tmp/pip-install-cl03y186/cffi/


回复

使用道具 举报

0

主题

2

帖子

38

积分

新手上路

Rank: 1

积分
38
金钱
36
HASS币
0
发表于 2018-11-6 13:16:18 | 显示全部楼层
试试这个
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
回复

使用道具 举报

0

主题

43

帖子

302

积分

中级会员

Rank: 3Rank: 3

积分
302
金钱
259
HASS币
0
发表于 2018-11-6 23:27:16 | 显示全部楼层
试试这个python3 -m pip install --upgrade homeassistant
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-24 07:40 , Processed in 0.051576 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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