本帖最后由 waylee 于 2019-5-9 10:44 编辑
运行 pip3.6 install HAP-python
Requirement already satisfied: ecdsa in /usr/local/lib/python3.6/site-packages (from tlslite-ng->HAP-python) (0.13.2)
Installing collected packages: ifaddr, zeroconf, ed25519, curve25519-donna, HAP-python
Running setup.py install for ifaddr ... done
Running setup.py install for ed25519 ... error
ERROR: Complete output from command /usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-93fwe5pc/ed25519/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-1mgctrsm/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/test_ed25519.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/__init__.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/_version.py -> build/lib.linux-x86_64-3.6/ed25519
copying src/ed25519/keys.py -> build/lib.linux-x86_64-3.6/ed25519
UPDATING build/lib.linux-x86_64-3.6/ed25519/_version.py
set build/lib.linux-x86_64-3.6/ed25519/_version.py to '1.4'
running build_ext
building 'ed25519._ed25519' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/src
creating build/temp.linux-x86_64-3.6/src/ed25519-glue
creating build/temp.linux-x86_64-3.6/src/ed25519-supercop-ref
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isrc/ed25519-supercop-ref -I/usr/include/python3.6m -c src/ed25519-glue/ed25519module.c -o build/temp.linux-x86_64-3.6/src/ed25519-glue/ed25519module.o
src/ed25519-glue/ed25519module.c:17:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-93fwe5pc/ed25519/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-1mgctrsm/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-93fwe5pc/ed25519/
复制代码
安装组件
[root@WAYLEE .homeassistant]# pip3.6 install curve25519-donna
Looking in indexes: [url]http://mirrors.aliyun.com/pypi/simple/[/url]
Collecting curve25519-donna
Downloading [url]http://mirrors.aliyun.com/pypi/packages/01/05/1ab1cc54c2b1e933721b8e65fedc01098e6b8ffdccedbc4a682d4e0db8c1/curve25519-donna-1.3.tar.gz[/url]
Installing collected packages: curve25519-donna
Running setup.py install for curve25519-donna ... error
ERROR: Complete output from command /usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-uyjwh9al/curve25519-donna/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-rmcoavto/install-record.txt --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/curve25519
copying python-src/curve25519/__init__.py -> build/lib.linux-x86_64-3.6/curve25519
copying python-src/curve25519/keys.py -> build/lib.linux-x86_64-3.6/curve25519
creating build/lib.linux-x86_64-3.6/curve25519/test
copying python-src/curve25519/test/__init__.py -> build/lib.linux-x86_64-3.6/curve25519/test
copying python-src/curve25519/test/test_curve25519.py -> build/lib.linux-x86_64-3.6/curve25519/test
copying python-src/curve25519/test/test_speed.py -> build/lib.linux-x86_64-3.6/curve25519/test
running build_ext
building 'curve25519._curve25519' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/python-src
creating build/temp.linux-x86_64-3.6/python-src/curve25519
gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c python-src/curve25519/curve25519module.c -o build/temp.linux-x86_64-3.6/python-src/curve25519/curve25519module.o
python-src/curve25519/curve25519module.c:3:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/usr/bin/python3.6 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-uyjwh9al/curve25519-donna/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-rmcoavto/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-uyjwh9al/curve25519-donna/
复制代码