13树莓派手动安装Home Assistant
2017-09-05 00:53:02
https://home-assistant.io/docs/installation/raspberry-pi/
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install python3 python3-venv python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3 is already the newest version (3.5.3-1).
python3-pip is already the newest version (9.0.1-2).
python3-venv is already the newest version (3.5.3-1).
python3-venv set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sudo useradd -rm homeassistant
$ cd /srv
$ sudo mkdir homeassistant
$ sudo chown homeassistant:homeassistant homeassistant
chown [-R] [用户名称:组名称] [文件或目录]
$ sudo su -s /bin/bash homeassistant
$ cd /srv/homeassistant
$ python3 -m venv .
$ source bin/activate
(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install home assistant
Collecting homeassistant
Downloading homeassistant-0.52.1-py2.py3-none-any.whl (7.3MB)
100% |████████████████████████████████| 7.4MB 7.1kB/s
Collecting aiohttp==2.2.5 (from homeassistant)
Downloading aiohttp-2.2.5.tar.gz (788kB)
100% |████████████████████████████████| 798kB 11kB/s
Collecting pytz>=2017.02 (from homeassistant)
Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
100% |████████████████████████████████| 491kB 7.0kB/s
Collecting pyyaml<4,>=3.11 (from homeassistant)
Downloading PyYAML-3.12.tar.gz (253kB)
100% |████████████████████████████████| 256kB 9.4kB/s
Collecting async-timeout==1.2.1 (from homeassistant)
Downloading async_timeout-1.2.1-py3-none-any.whl
Collecting jinja2>=2.9.5 (from homeassistant)
Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340kB) 100% |████████████████████████████████| 348kB 18kB/sCollecting chardet==3.0.4 (from homeassistant) Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB) 100% |████████████████████████████████| 143kB 11kB/sCollecting voluptuous==0.10.5 (from homeassistant) Downloading voluptuous-0.10.5.tar.gz (41kB) 100% |████████████████████████████████| 51kB 17kB/sCollecting astral==1.4 (from homeassistant) Downloading astral-1.4-py2.py3-none-any.whlCollecting requests==2.14.2 (from homeassistant) Downloading requests-2.14.2-py2.py3-none-any.whl (560kB) 100% |████████████████████████████████| 563kB 10kB/sCollecting typing<4,>=3 (from homeassistant) Downloading typing-3.6.2-py3-none-any.whlRequirement already satisfied: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant)Collecting multidict>=2.1.4 (from aiohttp==2.2.5->homeassistant) Downloading multidict-3.1.3.tar.gz (118kB) 100% |████████████████████████████████| 122kB 9.3kB/sCollecting yarl>=0.11 (from aiohttp==2.2.5->homeassistant) Downloading yarl-0.12.0.tar.gz (132kB) 100% |████████████████████████████████| 133kB 18kB/sCollecting MarkupSafe>=0.23 (from jinja2>=2.9.5->homeassistant) Downloading MarkupSafe-1.0.tar.gzBuilding wheels for collected packages: aiohttp, pyyaml, voluptuous, multidict, yarl,MarkupSafeRunning setup.py bdist_wheel for aiohttp ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/aiohttp/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/tmpa7vgh_ubpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for aiohttpRunning setup.py clean for aiohttpRunning setup.py bdist_wheel for pyyaml ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/pyyaml/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/tmpsx8fngxzpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for pyyamlRunning setup.py clean for pyyamlRunning setup.py bdist_wheel for voluptuous ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/voluptuous/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/tmpit2li645pip-wheel---python-tag cp35: WARNING:Couldnot locate pandoc,usingMarkdown long_description. usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for voluptuousRunning setup.py clean for voluptuousRunning setup.py bdist_wheel for multidict ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/multidict/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/tmpvknq293hpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for multidictRunning setup.py clean for multidictRunning setup.py bdist_wheel for yarl ... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/yarl/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/tmp4sfjw_wbpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel for yarlRunning setup.py clean for yarlRunning setup.py bdist_wheel forMarkupSafe... errorComplete output from command /srv/homeassistant/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-20h68syg/MarkupSafe/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/tmp8zijlp_zpip-wheel---python-tag cp35: usage:-c [global_opts] cmd1 [cmd1_opts][cmd2 [cmd2_opts]...]or:-c --help [cmd1 cmd2 ...]or:-c --help-commandsor:-c cmd --help error: invalid command 'bdist_wheel'----------------------------------------Failed building wheel forMarkupSafeRunning setup.py clean forMarkupSafeFailed to build aiohttp pyyaml voluptuous multidict yarl MarkupSafeInstalling collected packages: chardet, multidict, async-timeout, yarl, aiohttp, pytz, pyyaml,MarkupSafe, jinja2, voluptuous, astral, requests, typing, homeassistantRunning setup.py install for multidict ...doneRunning setup.py install for yarl ...doneRunning setup.py install for aiohttp ...doneRunning setup.py install for pyyaml ...doneRunning setup.py install forMarkupSafe...doneRunning setup.py install for voluptuous ...doneSuccessfully installed MarkupSafe-1.0 aiohttp-2.2.5 astral-1.4 async-timeout-1.2.1 chardet-3.0.4 homeassistant-0.52.1 jinja2-2.9.6 multidict-3.1.3 pytz-2017.2 pyyaml-3.12 requests-2.14.2 typing-3.6.2 voluptuous-0.10.5 yarl-0.12.0(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $
(homeassistant) $ hass
一堆提示符中间包含这个
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hello, and welcome to Home Assistant!
We'll hope that we can make all your dreams come true.
Here are some resources to get started:
- Configuring Home Assistant:
https://home-assistant.io/getting-started/configuration/
- Available components:
https://home-assistant.io/components/
- Troubleshooting your configuration:
https://home-assistant.io/getting-started/troubleshooting-configuration/
- Getting help:
https://home-assistant.io/help/
This message is generated by the introduction component. You can
disable it in configuration.yaml.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
网页无法打开
(homeassistant) homeassistant@raspberrypi:/srv/homeassistant $ pip3 install sqlalchemy
13树莓派手动安装Home Assistant的更多相关文章
- 树莓派虚拟环境手动安装HA
树莓派手动安装 https://www.home-assistant.io/docs/installation/raspberry-pi/ sudo apt-get update sudo apt-g ...
- rpm 更新/升级 软件包(libGL-devel手动安装过程)
rpm参数解释 -i 安装 -h 解压rpm的时候打印50个斜条 (#) -v 显示详细信息 升级命令rpm -Uvh rpm文件名 参数解释 -U 升级 -h 解压rpm的时候打印50个斜条 (#) ...
- VM的Linux CentOS系统的VMTools的手动安装
VM的Linux CentOS系统的VMTools的手动安装 一是没时间安装,另外是一直用的是VM的绿色版,里面没有Linux.iso 文件 今天晚上安装上了 linux 的vmtools ,再也不用 ...
- 在 Linux 虚拟机中手动安装或升级 VMware Tools
对于 Linux 虚拟机,您可以使用命令行工具手动安装或升级 VMware Tools. 本次Linux 虚拟机为CentOS6.5 先决条件开启虚拟机.确认客户机操作系统正在运行.由于 VMware ...
- linux手动安装sbt过程
ubuntu14 手动安装sbt 参见官网配置说明http://www.scala-sbt.org/release/tutorial/Manual-Installation.html 1.下载sbt通 ...
- OpenSUSE 13.1上安装StrongSwan
结果: 1)iOS 7.1设备能够拨IPSec VPN到StrongSwan电脑上面来 - Connect to VPN 2)iOS 设备浏览器能够訪问StrongSwan VPN所在的内网地址服务器 ...
- 树莓派4B安装Raspbian系统及配置
2019/11/11, 树莓派4B, Raspbian Buster 摘要:给树莓派4B安装系统及基础配置 树莓派实验室参考文档 准备工具 树莓派4B硬件 SD卡格式化工具 SD Formatter ...
- MySQL CentOS7 手动安装
手动安装MySQL的目的: 1.一个服务器上可以同时装多个版本,甚至相同版本MySQL的多个实例,这种需求很常见: 2.一次初始化和配置后,可以快速复制到本服务器或其他服务器,及封装为初始MySQL的 ...
- PyCharm虚拟环(Project Interpreter)手动安装第三方包图解教程
PyCharm虚拟环(Project Interpreter)手动安装第三方包图解教程 an鑫_wolfxin2010 关注 2018.03.13 21:58* 字数 313 阅读 3782评论 1喜 ...
随机推荐
- Stacking:Catboost、Xgboost、LightGBM、Adaboost、RF etc
python风控评分卡建模和风控常识(博客主亲自录制视频教程) https://study.163.com/course/introduction.htm?courseId=1005214003&am ...
- python去除html标签的几种方法
import re from bs4 import BeautifulSoup from lxml import etree html = '<p>你好</p><br/& ...
- RocketMQ_问题_启动控制台console报错,connect to <null> failed
配置如图所示: 问题如图所示: 明明配置了nameserver参数为啥还是connect to null呢? 我的rocketmq部署在CentOS7虚拟机上,原来是没关闭防火墙,执行:systemc ...
- matlab中cumsum函数
matlab中cumsum函数通常用于计算一个数组各行的累加值.在matlab的命令窗口中输入doc cumsum或者help cumsum即可获得该函数的帮助信息. 格式一:B = cumsum(A ...
- 071、如何定制calico网络的IP池(2019-04-16 周二)
参考https://www.cnblogs.com/CloudMan6/p/7571272.html 在前面的学习中,我们没有特别配置,calico会自动为网络分配subnet,当然我们也可以根据 ...
- [物理学与PDEs]第5章习题9 伴随矩阵的特征值
设 $3\times 3$ 阵 ${\bf A}$ 的特征值为 $\lm_1,\lm_2,\lm_3$, 证明 $\cof {\bf A}$ 的特征值为 $$\bex \lm_2\lm_3,\quad ...
- 不定参数对arguments对象的影响
如果声明函数时定义了不定参数,则在函数被调用时,arguments对象包含了所有传入的参数: function checkArgs(...args){ console.log(args.length, ...
- PL/SQl编程 基本语法
/*输出hello world*/ DECLARE BEGIN DBMS_OUTPUT.PUT_LINE('Hello World'); END; --set serveroutput on; /** ...
- C++ 在类里面使用多线程技术
参考链接: https://blog.csdn.net/jmh1996/article/details/72235232 说明: C++的每个成员函数都会有一定转化, 而static 则不会 ...
- 使用工具intellij idea 进行java web开发简介
一.工具下载及安装准备 1.首先下载工具 Intellij idea ,下载地址:https://www.jetbrains.com/ 2.破解 百度下载一个 JetbrainsCrack-2.7- ...