请选择 进入手机版 | 继续访问电脑版

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

 找回密码
 立即注册
查看: 93|回复: 4

[技术探讨] 求助!用termux组建的homeassistant,装不上PyNaCl

[复制链接]

1

主题

30

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
56
HASS币
0
发表于 2019-11-6 14:03:01 | 显示全部楼层 |阅读模式
本帖最后由 z741554038 于 2019-11-6 14:04 编辑

小白求助
检查配置图如下 1.png

安装错误信息如下
$ pip install -i https://pypi.tuna.tsinghua.edu.cn/simple PyNaCl
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting PyNaCl
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/61/ab/2ac6dea8489fa713                                                                                                                                                             e2b4c6c5b549cc962dd4a842b5998d9e80cf8440b7cd/PyNaCl-1.3.0.tar.gz
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: six in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from PyNaCl) (1.12.0)
Requirement already satisfied: cffi>=1.4.1 in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from PyNaCl) (1.13.2)
Requirement already satisfied: pycparser in /data/data/com.termux/files/usr/lib/python3.7/site-packages (from cffi>=1.4.1->yNaCl) (2.19)
Building wheels for collected packages: PyNaCl
  Building wheel for PyNaCl (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /data/data/com.termux/files/usr/bin/python /data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /data/data/com.termux/files/usr/tmp/tmp1cvuwi1g
       cwd: /data/data/com.termux/files/usr/tmp/pip-install-da_astlb/PyNaCl
  Complete output (78 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/nacl
  copying src/nacl/__init__.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/encoding.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/exceptions.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/hash.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/hashlib.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/public.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/secret.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/signing.py -> build/lib.linux-aarch64-3.7/nacl
  copying src/nacl/utils.py -> build/lib.linux-aarch64-3.7/nacl
  creating build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/__init__.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/_argon2.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/argon2i.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/argon2id.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  copying src/nacl/pwhash/scrypt.py -> build/lib.linux-aarch64-3.7/nacl/pwhash
  creating build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/__init__.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_aead.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_box.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_generichash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_hash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_kx.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_pwhash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_scalarmult.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_secretbox.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_secretstream.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_shorthash.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/crypto_sign.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/randombytes.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/sodium_core.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  copying src/nacl/bindings/utils.py -> build/lib.linux-aarch64-3.7/nacl/bindings
  running build_clib
  Traceback (most recent call last):
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/data/data/com.termux/files/usr/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
      metadata_directory)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 209, in build_wheel
      wheel_directory, config_settings)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 194, in _build_with_temp_dir
      self.run_setup()
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 237, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 142, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 255, in <module>
      "rogramming Language :: Python :: 3.7",
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/data/data/com.termux/files/usr/tmp/pip-build-env-oewitcnp/overlay/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
      self.run_command('build')
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/data/data/com.termux/files/usr/lib/python3.7/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "setup.py", line 159, in run
      raise Exception("ERROR: The 'make' utility is missing from PATH")
  Exception: ERROR: The 'make' utility is missing from PATH
  ----------------------------------------
  ERROR: Failed building wheel for PyNaCl
  Running setup.py clean for PyNaCl
Failed to build PyNaCl
ERROR: Could not build wheels for PyNaCl which use PEP 517 and cannot be installed directly


回复

使用道具 举报

7

主题

596

帖子

2102

积分

金牌会员

Rank: 6Rank: 6

积分
2102
金钱
1501
HASS币
40
QQ
发表于 2019-11-6 14:32:48 | 显示全部楼层
本帖最后由 Aiden1 于 2019-11-6 14:35 编辑

更换一下源或者执行命令试试
pip3 install PyNaCl==1.3.0

回复

使用道具 举报

1

主题

30

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
56
HASS币
0
 楼主| 发表于 2019-11-6 15:05:01 | 显示全部楼层
Aiden1 发表于 2019-11-6 14:32
更换一下源或者执行命令试试

就清华的源才有Pynacl,我试一下重新安装吧,从头再来
回复

使用道具 举报

105

主题

3661

帖子

1万

积分

管理员

囧死

Rank: 9Rank: 9Rank: 9

积分
11770
金钱
8029
HASS币
44
发表于 2019-11-7 00:02:06 | 显示全部楼层
这是什么东东,氯化钠?
回复

使用道具 举报

1

主题

30

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
56
HASS币
0
 楼主| 发表于 2019-11-8 09:26:41 | 显示全部楼层
小白不太懂,大概是python的调味剂吧,哈哈哈
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2019-11-18 04:09 , Processed in 0.083256 second(s), 24 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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