2018-02-24 14:17:46

https://home-assistant.io/docs/installation/raspberry-pi/
首先安装2017-11-29-raspbian-stretch树莓派镜像到SD卡,步骤如下:
下载镜像文件,转到网页https://www.raspberrypi.org/downloads/raspbian/,下载“Raspbian Stretch with desktop”的zip文件。
安装镜像文件到SD卡,转到https://www.raspberrypi.org/documentation/installation/installing-images/README.md,按照步骤安装。
下载镜像写入工具Etcher,转到网页https://etcher.io/下载当前操作系统指定版本的Etcher(我使用的是Etcher-Portable-1.3.1-x64),双击Etcher-Portable-1.3.1-x64.exe,弹出的截面点击“”,选择已经下载好的镜像文件,最后点击“Flash”按钮,等待镜像写入和校验完成后自动弹出读卡器。

运行用户run as为pi

查看现有python3版本:

python3 --version

pi@raspberrypi:~ $ python3 --version
Python 3.5.3

更新整个系统到最新版本

pi@raspberrypi:~ $ sudo apt-get update
命中:1 http://mirrors.aliyun.com/raspbian/raspbian stretch InRelease
命中:2 http://archive.raspberrypi.org/debian stretch InRelease 
正在读取软件包列表... 完成 
pi@raspberrypi:~ $ sudo apt-get upgrade
正在读取软件包列表... 完成
正在分析软件包的依赖关系树 
正在读取状态信息... 完成 
正在计算更新... 完成
下列软件包的版本将保持不变:
wolfram-engine
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。

建立虚拟环境If you’re on a Debian based system, you will need to install Python virtual environment support using

pi@raspberrypi:~ $ sudo apt-get install python3-pip python3-venv
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
python3-venv 已经是最新版 (3.5.3-1)。
python3-venv 已设置为手动安装。
python3-pip 已经是最新版 (9.0.1-2+rpt1)。
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 1 个软件包未被升级。

Create a virtual environment in your current directory:

pi@raspberrypi:~ $ python3 -m venv homeassistant

Open the virtual environment:

pi@raspberrypi:~ $ cd homeassistant

Activate the virtual environment:

pi@raspberrypi:~/homeassistant $ source bin/activate

Install wheel:

(homeassistant) pi@raspberrypi:~/homeassistant $ python3 -m pip install wheel
Collecting wheel
Downloading wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 40kB/s
Installing collected packages: wheel
Successfully installed wheel-0.30.0

Install Home Assistant:

(homeassistant) pi@raspberrypi:~/homeassistant $ python3 -m pip install homeassistant
Collecting homeassistant
Using cached homeassistant-0.63.3-py2.py3-none-any.whl
Requirement already satisfied: pip>=8.0.3 in ./lib/python3.5/site-packages (from homeassistant)
Collecting chardet==3.0.4 (from homeassistant)
Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |████████████████████████████████| 143kB 50kB/s
Collecting attrs==17.4.0 (from homeassistant)
Using cached attrs-17.4.0-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from homeassistant)
Using cached certifi-2018.1.18-py2.py3-none-any.whl
Collecting jinja2>=2.10 (from homeassistant)
Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
100% |████████████████████████████████| 133kB 30kB/s
Collecting pytz>=2017.02 (from homeassistant)
Downloading pytz-2018.3-py2.py3-none-any.whl (509kB)
100% |████████████████████████████████| 512kB 30kB/s
Collecting yarl==1.1.0 (from homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/yarl/yarl-1.1.0-cp35-cp35m-linux_armv7l.whl (227kB)
100% |████████████████████████████████| 235kB 693kB/s
Collecting async-timeout==2.0.0 (from homeassistant)
Downloading async_timeout-2.0.0-py3-none-any.whl
Collecting voluptuous==0.10.5 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/voluptuous/voluptuous-0.10.5-py3-none-any.whl
Collecting pyyaml<4,>=3.11 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/pyyaml/PyYAML-3.12-cp35-cp35m-linux_armv7l.whl
Collecting requests==2.18.4 (from homeassistant)
Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)
100% |████████████████████████████████| 92kB 47kB/s
Collecting aiohttp==2.3.10 (from homeassistant)
Using cached https://www.piwheels.hostedpi.com/simple/aiohttp/aiohttp-2.3.10-cp35-cp35m-linux_armv7l.whl
Collecting astral==1.5 (from homeassistant)
Downloading astral-1.5-py2.py3-none-any.whl
Collecting typing<4,>=3 (from homeassistant)
Downloading typing-3.6.4-py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/markupsafe/MarkupSafe-1.0-cp35-cp35m-linux_armv7l.whl
Collecting multidict>=4.0 (from yarl==1.1.0->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/multidict/multidict-4.1.0-cp35-cp35m-linux_armv7l.whl (444kB)
100% |████████████████████████████████| 450kB 147kB/s
Collecting idna>=2.0 (from yarl==1.1.0->homeassistant)
Downloading idna-2.6-py2.py3-none-any.whl (56kB)
100% |████████████████████████████████| 61kB 17kB/s
Collecting urllib3<1.23,>=1.21.1 (from requests==2.18.4->homeassistant)
Downloading urllib3-1.22-py2.py3-none-any.whl (132kB)
100% |████████████████████████████████| 133kB 35kB/s
Collecting idna-ssl>=1.0.0 (from aiohttp==2.3.10->homeassistant)
Downloading https://www.piwheels.hostedpi.com/simple/idna-ssl/idna_ssl-1.0.0-py3-none-any.whl
Installing collected packages: chardet, attrs, certifi, MarkupSafe, jinja2, pytz, multidict, idna, yarl, async-timeout, voluptuous, pyyaml, urllib3, requests, idna-ssl, aiohttp, astral, typing, homeassistant
Successfully installed MarkupSafe-1.0 aiohttp-2.3.10 astral-1.5 async-timeout-2.0.0 attrs-17.4.0 certifi-2018.1.18 chardet-3.0.4 homeassistant-0.63.3 idna-2.6 idna-ssl-1.0.0 jinja2-2.10 multidict-4.1.0 pytz-2018.3 pyyaml-3.12 requests-2.18.4 typing-3.6.4 urllib3-1.22 voluptuous-0.10.5 yarl-1.1.0

转载于:https://www.cnblogs.com/arrive/p/9602902.html

16重新安装HA0.63相关推荐

  1. (16)双目视觉的图像获取

    1.主要参考 (1)摄像头参数 https://blog.csdn.net/crazty/article/details/107365147 (2)双目标定方法,过程参照了一下 双目三维重建系统(双目 ...

  2. LLVM学习笔记(16)

    3.4.2.4. PatFrag的处理 3.4.2.4.1. 模式树的构建 PatFrag是一个可重用的构件,TableGen会在PatFrag出现的地方展开其定义,有点像C/C++中的宏.为此,Co ...

  3. benchmark问题_使用U盘来掩盖CEPH IO性能低下的问题

    背景 最近Gemfield利用团队废弃的硬件搭建了一个CEPH集群,这些硬件的关键信息如下: 主流的Intel x86 cpu: 64GB RAM per node: 1GbE+ NIC: 1GbE+ ...

  4. 西门子安装未找到ssf文件_西门子300软件安装出错处理方法

    1.西门子300 smart软件安装时,出现未找到SSF文件的错误,应该怎么解决? 图片1.png (32.81 KB, 下载次数: 180) 2017-6-16 10:38 上传 解决方法: 对于西 ...

  5. 红帽子认证辅导教程(转)

    红帽子认证辅导教程 V.2002.12.09 声明: 本文的中文版权属于译者probing所有 你可以随便使用和补充资料但请注明译者,前提是不要用在商业用途上.如果用于商业请与我联系. probing ...

  6. linux文件系统简介_Linux文件系统简介

    linux文件系统简介 本文旨在对Linux文件系统概念进行非常高级的讨论. 它无意于对诸如EXT4之类的特定文件系统类型如何工作进行低级描述,也无意于成为文件系统命令的教程. 每台通用计算机都需要将 ...

  7. Bochs 虚拟机下载与使用教程

    Bochs 虚拟机下载与使用教程 1.前言 2.Bochs的优势 3.Bochs的下载 3.1.Windows 3.2 Linux 3.Bochs的使用 3.1.bochsrc.bxrc配置文件的使用 ...

  8. MySQL主从的一致性校验及修复

    主从的一致性校验 场景: 有人会问道:如何验证主从的一致性 又或者问:一个库里有几十张表 主从结构数据是否一致? 简单来讲可以在低峰期主从上分别使用select count(*)来看一下,这种方式是最 ...

  9. Logical Volume Manager in Linux ( Create, Displ...

    为什么80%的码农都做不了架构师?>>>    What is LVM? LVM is a tool for logical volume management which incl ...

最新文章

  1. 如何清除服务器物理内存,服务器怎样清理物理内存
  2. ES6—类的实现原理
  3. 我是如何学习写一个操作系统(九):文件系统
  4. c语言 大数相加,c/c++开发分享C语言计算大数相加的方法
  5. 每日一题(13)—— #includefile.h 与 #include “file”的区别
  6. Java笔记-使用RabbitMQ的Java接口实现Publish/Subscribe(订阅模式)
  7. MongoDB未授权访问漏洞记录(端口:27017,37017)
  8. 你还在用虚拟机,win10自带的linux还有图形界面(小白教程)
  9. LaTeX(6)——LaTeX引用使用(\label)
  10. JavaScript 语言精粹 高清PDF中文版
  11. 操作系统之多道程序设计
  12. SAP FI月结 坏账转移及计提准备 Doubtful Receivables Bad Debts
  13. LearnOpenGL学习笔记——法线贴图
  14. 基于Arduino UNO的光驱写字机制作
  15. python批量删缩进_鬼畜小姐姐+野狼disco,十分钟教你如何用Python剪辑一个牛逼的抖音小视频?...
  16. Failed to connect to github.com port 443: Timed out 及 ping github.com请求超时
  17. 1037: 某年某月有多少天(C语言)
  18. CSDN文章:提示请设置内容等级
  19. ip地址中斜杠(/)含义
  20. 解决VS Code连接远程服务器使用Python中的matplotiib包画图无法显示的问题

热门文章

  1. python self 序列_python中序列化对象
  2. NIO之ByteBuffer_NIO之网络IO_与ChannelNetty初窥门径
  3. html css配色方案,链接css不同的配色方案问题
  4. python开发出来的crm系统_用Python打造一个CRM系统(三)
  5. python ssh实现_SSH协议的Python实现paramiko
  6. LeetCode 2096. 从二叉树一个节点到另一个节点每一步的方向(最小公共祖先)
  7. 天池 在线编程 牛郎织女(广度优先搜索)
  8. LeetCode 992. K 个不同整数的子数组(双指针)
  9. LeetCode MySQL 1204. 最后一个能进入电梯的人(累加/变量/窗口函数)
  10. LeetCode 1056. 易混淆数(哈希)