本帖最后由 荒野无灯 于 2019-3-26 09:40 编辑
提示:0326之后的新固件已经内置docker, 不用这么麻烦手动安装了!

在gitee issue也一直没有人提这个问题。因此我之前一直不知道。
直到今天我N1群里有朋友提起这个事情,然后说有相当一部分人有这个需求。
本教程基本上是按照 “第二炮 为小钢炮安装HomeAssistant教程” (https://www.right.com.cn/forum/thread-345523-1-1.html)
不同之处是,针对其中遇到的麻烦,提供了一些修复方法,使得安装过程可以成功完成。
然后是,友好的“全程带图”
原文发表于gitee wiki: https://dwz.cn/4sUYhLZx (码云不让外站引用图,图裂了,请去这里查看有图版的)
(另外,按network007的方法设置entware时,有一点要注意,不要把原来的源给去除了,去除了会造成无法更新系统自身的一些包.)
- opkg2 install gcc python3 python3-dev python3-cffi python3-cryptography python3-pip
复制代码安装完成。
- pip3 install --upgrade pip
复制代码
解决以下两个错误的办法: fatal error: ffi.h: No such file or directory fatal error: openssl/opensslv.h: No such file or directory
- opkg2 install libffi python3-cffi python3-cryptography
- cd /opt/include
- wget -Un1 http://files.80x86.io/router/rom/PHICOMM-N1/dev/openssl.zip
- unzip openssl.zip
- wget -Un1 http://files.80x86.io/router/rom/PHICOMM-N1/dev/ffitarget.h
- wget -Un1 http://files.80x86.io/router/rom/PHICOMM-N1/dev/ffi.h
复制代码
好了,现在可以开始安装 homeassistant 了 pip3 install mutagen warrant virtualenv homeassistant这里就是论坛中说的容易出错的地方:  Building wheels for collected packages: aiohttp, bcrypt, cryptography Building wheel for aiohttp (PEP 517) ... / 安装成功是这样的: 
即可。
|