我的编程空间,编程开发者的网络收藏夹
学习永远不晚

安装homeassistant+pyth

短信预约 -IT技能 免费直播动态提醒
省份

北京

  • 北京
  • 上海
  • 天津
  • 重庆
  • 河北
  • 山东
  • 辽宁
  • 黑龙江
  • 吉林
  • 甘肃
  • 青海
  • 河南
  • 江苏
  • 湖北
  • 湖南
  • 江西
  • 浙江
  • 广东
  • 云南
  • 福建
  • 海南
  • 山西
  • 四川
  • 陕西
  • 贵州
  • 安徽
  • 广西
  • 内蒙
  • 西藏
  • 新疆
  • 宁夏
  • 兵团
手机号立即预约

请填写图片验证码后获取短信验证码

看不清楚,换张图片

免费获取短信验证码

安装homeassistant+pyth

1、基础信息

    - 版本信息
        - Scientific Linux release 7.6 (Nitrogen)
        -  win10 linux 子系统,centos,wlinux
        - 摸着石头过河,安装出现部分问题,再补充
        -当前目录
            [root@SKY-20181201MWD ~]# pwd
            /root
            [root@SKY-20181201MWD ~]# ls
            Python-3.6.0  Python-3.6.0.tgz  anaconda-ks.cfg  epel-release-latest-7.noarch.rpm  original-ks.cfg
            [root@SKY-20181201MWD ~]#
        -  扩充开发套件
            -  yum install openssl  openssl-devel

 -  wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz

2、编译安装python3.6

  1. 编辑源目录下的vim Modules/Setup.dist +209,去掉ssl注释,因为后面pip3安装home的时候会使用ssl加密协议.

207 Socket module helper for SSL support; you must comment out the other
208 socket line above, and possibly edit the SSL variable:
209 SSL=/usr/local/ssl
210 _ssl _ssl.c \
211 -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
212 -L$(SSL)/lib -lssl -lcrypto
213


  1. 编译安装
    • ./configure --prefix=/usr/local/python3.6
    • make && make install
  2. 把编译安装的python程序加入系统环境

    • 编辑系统变量文件,添加程序路径
      vim /etc/profile
      在文件底部添加, export PATH=$PATH:/usr/local/python3.6/bin/
      退出后保存:wq保存

       ![profile](/file/imgs/upload/202301/31/0vlvcwzbvzs.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk)
      
        .  /etc/profile  --加载系统环境变量

3、安装homeassistant

  • pip3 install homeassistant

[root@SKY-20181201MWD bin]# ./pip3 install homeassistant
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
Collecting homeassistant
Downloading https://files.pythonhosted.org/packages/1c/e2/c9ff3c6516fa040cbc2645fc7e579373f676f462329568761727c9430f12/homeassistant-0.87.0-py3-none-any.whl (3.7MB)
100% |################################| 3.7MB 222kB/s
Collecting bcrypt==3.1.5 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/31/4b/4057d0716e7170c29ff12e19791eb6037422620835e4a58a01d4790e56d1/bcrypt-3.1.5-cp34-abi3-manylinux1_x86_64.whl (55kB)
100% |################################| 61kB 4.0MB/s
Collecting cryptography==2.3.1 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/59/32/92cade62c645756a83598edf56289e9b19aae5370642a7ce690cd06bc72f/cryptography-2.3.1-cp34-abi3-manylinux1_x86_64.whl (2.1MB)
100% |################################| 2.1MB 268kB/s
Collecting async-timeout==3.0.1 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting pytz>=2018.07 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/61/28/1d3920e4d1d50b19bc5d24398a7cd85cc7b9a75a490570d5a30c57622d34/pytz-2018.9-py2.py3-none-any.whl (510kB)
100% |################################| 512kB 1.4MB/s
Collecting astral==1.8 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/74/49/f79344cc99cee4816cc2b22d04d8bc622135415a2713847620a076ef7ca3/astral-1.8-py2.py3-none-any.whl
Collecting certifi>=2018.04.16 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-none-any.whl (154kB)
100% |################################| 163kB 4.3MB/s
Collecting requests==2.21.0 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
100% |################################| 61kB 2.4MB/s
Requirement already satisfied: pip>=8.0.3 in /usr/local/python3.6/lib/python3.6/site-packages (from homeassistant)
Collecting aiohttp==3.5.4 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/0d/5c/f87987f4dc8b2cfcf37c83a814ea4b2aff4d285cbffc0ab08b2b4fa3f584/aiohttp-3.5.4-cp36-cp36m-manylinux1_x86_64.whl (1.2MB)
100% |################################| 1.2MB 80kB/s
Collecting voluptuous==0.11.5 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/59/95/fa6218477c6999c9b7fdfab7c12c1bd4da2d5930f5eb2b232ec74eb344e7/voluptuous-0.11.5-py2.py3-none-any.whl
Collecting ruamel.yaml==0.15.85 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/01/f3/4547d90e0ece2c9e42f9c59bda62123b2410901039d19e35fc23db35fc1c/ruamel.yaml-0.15.85-cp36-cp36m-manylinux1_x86_64.whl (663kB)
100% |################################| 665kB 149kB/s
Collecting python-slugify==1.2.6 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/00/ad/c778a6df614b6217c30fe80045b365bfa08b5dd3cb02e8b37a6d25126781/python-slugify-1.2.6.tar.gz
Collecting voluptuous-serialize==2.0.0 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/66/fd/c3e522ce5645686b9712d230e3599fca12bdf5f76b8176da26d19c3852db/voluptuous-serialize-2.0.0.tar.gz
Collecting PyJWT==1.6.4 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/93/d1/3378cc8184a6524dc92993090ee8b4c03847c567e298305d6cf86987e005/PyJWT-1.6.4-py2.py3-none-any.whl
Collecting attrs==18.2.0 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/3a/e1/5f9023cc983f1a628a8c2fd051ad19e76ff7b142a0faf329336f9a62a514/attrs-18.2.0-py2.py3-none-any.whl
Collecting pyyaml<4,>=3.13 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
100% |################################| 276kB 2.8MB/s
Collecting jinja2>=2.10 (from homeassistant)
Downloading https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl (126kB)
100% |################################| 133kB 4.8MB/s
Collecting cffi>=1.1 (from bcrypt==3.1.5->homeassistant)
Downloading https://files.pythonhosted.org/packages/6d/c0/47db8f624f3e4e2f3f27be03a93379d1ba16a1450a7b1aacfa0366e2c0dd/cffi-1.11.5-cp36-cp36m-manylinux1_x86_64.whl (421kB)
100% |################################| 430kB 88kB/s
Collecting six>=1.4.1 (from bcrypt==3.1.5->homeassistant)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting idna>=2.1 (from cryptography==2.3.1->homeassistant)
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
100% |################################| 61kB 4.5MB/s
Collecting asn1crypto>=0.21.0 (from cryptography==2.3.1->homeassistant)
Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
100% |################################| 102kB 4.6MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->homeassistant)
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
100% |################################| 143kB 3.9MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->homeassistant)
Downloading https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl (118kB)
100% |################################| 122kB 5.1MB/s
Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp==3.5.4->homeassistant)
Downloading https://files.pythonhosted.org/packages/46/03/07c4894aae38b0de52b52586b24bf189bb83e4ddabfe2e2c8f2419eec6f4/idna-ssl-1.1.0.tar.gz
Collecting multidict<5.0,>=4.0 (from aiohttp==3.5.4->homeassistant)
Downloading https://files.pythonhosted.org/packages/71/cc/ceb5b8c76e7a23212b9e0353053cc35a9d86c763d852a76d9b941fe81fbc/multidict-4.5.2-cp36-cp36m-manylinux1_x86_64.whl (309kB)
100% |################################| 317kB 452kB/s
Collecting yarl<2.0,>=1.0 (from aiohttp==3.5.4->homeassistant)
Downloading https://files.pythonhosted.org/packages/fa/c0/9a73968a9f4e4dac8dffb0ba35f932dd7798fe97901f4942c2d38667862c/yarl-1.3.0-cp36-cp36m-manylinux1_x86_64.whl (251kB)
100% |################################| 256kB 3.0MB/s
Collecting typing-extensions>=3.6.5; python_version < "3.7" (from aiohttp==3.5.4->homeassistant)
Downloading https://files.pythonhosted.org/packages/0f/62/c66e553258c37c33f9939abb2dd8d2481803d860ff68e635466f12aa7efa/typing_extensions-3.7.2-py3-none-any.whl
Collecting Unidecode>=0.04.16 (from python-slugify==1.2.6->homeassistant)
Downloading https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl (237kB)
100% |################################| 245kB 256kB/s
Collecting MarkupSafe>=0.23 (from jinja2>=2.10->homeassistant)
Downloading https://files.pythonhosted.org/packages/08/04/f2191b50fb7f0712f03f064b71d8b4605190f2178ba02e975a87f7b89a0d/MarkupSafe-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pycparser (from cffi>=1.1->bcrypt==3.1.5->homeassistant)
Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
100% |################################| 163kB 3.4MB/s
Installing collected packages: pycparser, cffi, six, bcrypt, idna, asn1crypto, cryptography, async-timeout, pytz, astral, certifi, chardet, urllib3, requests, idna-ssl, multidict, yarl, attrs, typing-extensions, aiohttp, voluptuous, ruamel.yaml, Unidecode, python-slugify, voluptuous-serialize, PyJWT, pyyaml, MarkupSafe, jinja2, homeassistant
Running setup.py install for pycparser ... done
Running setup.py install for idna-ssl ... done
Running setup.py install for python-slugify ... done
Running setup.py install for voluptuous-serialize ... done
Running setup.py install for pyyaml ... done
Successfully installed MarkupSafe-1.1.0 PyJWT-1.6.4 Unidecode-1.0.23 aiohttp-3.5.4 asn1crypto-0.24.0 astral-1.8 async-timeout-3.0.1 attrs-18.2.0 bcrypt-3.1.5 certifi-2018.11.29 cffi-1.11.5 chardet-3.0.4 cryptography-2.3.1 homeassistant-0.87.0 idna-2.8 idna-ssl-1.1.0 jinja2-2.10 multidict-4.5.2 pycparser-2.19 python-slugify-1.2.6 pytz-2018.9 pyyaml-3.13 requests-2.21.0 ruamel.yaml-0.15.85 six-1.12.0 typing-extensions-3.7.2 urllib3-1.24.1 voluptuous-0.11.5 voluptuous-serialize-2.0.0 yarl-1.3.0
You are using pip version 9.0.1, however version 19.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


4、启动homeassistant,

  • 运行hass

免责声明:

① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。

② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341

安装homeassistant+pyth

下载Word文档到电脑,方便收藏和打印~

下载Word文档

猜你喜欢

安装homeassistant+pyth

1、基础信息 - 版本信息 - Scientific Linux release 7.6 (Nitrogen) - win10 linux 子系统,centos,wlinux - 摸着石头过
2023-01-31

Intellij IDEA 安装Pyth

百度网盘地址:https://pan.baidu.com/s/1d9ArRH6adhDUGiJvRqnZMw        (1)建议手动安装插件 IDEA Pyhton插件地址:http://plugins.jetbrains.com/p
2023-01-31

ubuntu 16.04 安装 pyth

原文是环境:ubuntu14.04, python2.7本地环境:ubuntu16.04, python2.7转自 http://blog.csdn.net/heybob/article/details/52922645 =========
2023-01-31

【Python】安装MySQL-pyth

// wget[root@wode006 tools]# wget https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.5.zip--2015-07
2023-01-31

python 安装 mysql-pyth

安装pip install MySQL-python 故障解决!   running build_ext    building '_mysql' extension    error: Microsoft Visual C++ 9.0 i
2023-01-31

LINUX CENTOS7下安装PYTH

1.查看是否已经安装PythonCentos7默认安装了python2.7.5 因为一些命令要用它比如yum 它使用的是python2.7.5。使用yum install openssl-devel;安装环境使用python -V命令查看一
2023-01-31

Linux安装Python3与Pyth

linux自带了Python2而且这个Python2不能被删除,因为有很多系统命令,比如yum都要用到。输入python命令,查看可以得知是Python2.7.5版本[root@GuangBo ~]# pythonPython 2.7.5
2023-01-31

Linux 下安装 pyenv(Pyth

安装依赖yum -y install gcc gcc-c++ make git patch openssl-devel \zlib-devel readline-devel sqlite-devel bzip2-devel自动安装工具cur
2023-01-31

centos 7 yum 安装 pyth

sudo yum install epel-releasesudo yum install python34
2023-01-31

Ubuntu下安装opencv与pyth

首先先去opencv官网(http://opencv.org/downloads.html)下载linux版本的opencv压缩包,此处下载的opencv3.1版本的。进入opencv下载的文件夹,解压unzip opencv-3.1.0.
2023-01-31

Win10下安装Python3和Pyth

1.下载3.65 2.7.15安装文件Python 2.7.152.安装文件安装时选择all user 所有用户 与 开发环境3.让Python3.6.5和Python2.7.5同时运行一.修改执行文件Python 3.6.5 作为当前使
2023-01-31

windows 10 64位安装Pyth

1、下载Python3.6 windows版本的安装包    Python官网地址:https://www.python.org     下载软件包:python-3.6.4.exe    2、安装Python3.6版本,右击软件,以管理员
2023-01-31

【Python】SNMP的安装及Pyth

本文是介绍SNMP在Windows和Linux(Ubuntu)下的安装,以及通过Python调用其接口的文章。Python 3.5.1Windows 10 64位,Ubuntu 16.04 64位(虚拟机)SNMP(简单网络管理协议),由一
2023-01-31

win7 64位安装mysql-pyth

###今天测试个小程序在win7 64位系统下需要安装一下MySQL-python,参考了一下其他博客,发现都不行,最后用以下方法成功了,写一下留作笔记。1、前提是Python2.7和mysql5.7已经都安装成功。2、发现了这个网站:ht
2023-01-31

pyenv 安装(管理多个版本pyth

安装后可以方便的切换python版本1,运行升级库     yum install -y gcc make patch gdbm-devel openssl-devel sqlite-devel zlib-devel bzip2-devel
2023-01-31

Mac 删除/卸载 自己安装的 Pyth

官网pkg安装的python版本第一步:删除框架sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.71第二步:删除应用目录sudo rm -rf "/Applicatio
2023-01-31

详述 Mac 系统下安装及卸载 Pyth

博主说:对于 Mac 而言,其自带的 Python 2.6 和 Python 2.7 这两个版本已经能够满足我们的大部分需求了,因此除非对某个版本有强烈需求,否则不建议自己安装 Python,因为这是典型的安装容易,删除麻烦。安装 Pyth
2023-01-31

mac上通过brew包管理器安装pyth

mac上通过brew包管理器安装python3.6缘由:最近在学习pythonTDD(测试驱动开发时)遇到了一个问题,根据指导需要使用Django1.12版本,但是在跑服务启动命令python manage.py runserver的时候,
2023-01-31

编程热搜

  • Python 学习之路 - Python
    一、安装Python34Windows在Python官网(https://www.python.org/downloads/)下载安装包并安装。Python的默认安装路径是:C:\Python34配置环境变量:【右键计算机】--》【属性】-
    Python 学习之路 - Python
  • chatgpt的中文全称是什么
    chatgpt的中文全称是生成型预训练变换模型。ChatGPT是什么ChatGPT是美国人工智能研究实验室OpenAI开发的一种全新聊天机器人模型,它能够通过学习和理解人类的语言来进行对话,还能根据聊天的上下文进行互动,并协助人类完成一系列
    chatgpt的中文全称是什么
  • C/C++中extern函数使用详解
  • C/C++可变参数的使用
    可变参数的使用方法远远不止以下几种,不过在C,C++中使用可变参数时要小心,在使用printf()等函数时传入的参数个数一定不能比前面的格式化字符串中的’%’符号个数少,否则会产生访问越界,运气不好的话还会导致程序崩溃
    C/C++可变参数的使用
  • css样式文件该放在哪里
  • php中数组下标必须是连续的吗
  • Python 3 教程
    Python 3 教程 Python 的 3.0 版本,常被称为 Python 3000,或简称 Py3k。相对于 Python 的早期版本,这是一个较大的升级。为了不带入过多的累赘,Python 3.0 在设计的时候没有考虑向下兼容。 Python
    Python 3 教程
  • Python pip包管理
    一、前言    在Python中, 安装第三方模块是通过 setuptools 这个工具完成的。 Python有两个封装了 setuptools的包管理工具: easy_install  和  pip , 目前官方推荐使用 pip。    
    Python pip包管理
  • ubuntu如何重新编译内核
  • 改善Java代码之慎用java动态编译

目录