『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: 27hh

[进阶教程] 闲置安卓手机安装HA变身智能家居中枢,及网关接入教程

  [复制链接]

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-4-11 16:11:00 来自手机 | 显示全部楼层
换源的里面http改成https
回复

使用道具 举报

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-4-11 16:11:01 来自手机 | 显示全部楼层
换源的里面http改成https
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 16:25:17 | 显示全部楼层
27hh 发表于 2018-4-11 16:11
换源的里面http改成https

还是不行。。。
* Documentation:  https://help.ubuntu.com/
Ubuntu 16.04 LTS [running via Linux Deploy]
Last login: Wed Apr 11 16:18:34 2018 from 192.168.2.218
saturday@localhost:~$ sudo mkdir /srv/homeassistant
mkdir: cannot create directory '/srv/homeassistant': File exists
saturday@localhost:~$ sudo chown homeassistant:homeassistant /srv/homeassistant
saturday@localhost:~$ sudo mkdir /home/homeassistant/.pip
mkdir: cannot create directory '/home/homeassistant/.pip': File exists
saturday@localhost:~$ sudo sh -c "echo '[global]\nindex-url = https://mirrors.ustc.edu.cn/pypi/web/simple/' > /home/homeassistant/.pip/pip.conf"
saturday@localhost:~$ sudo chown -R homeassistant:homeassistant /home/homeassistant/.pip
saturday@localhost:~$ sudo su -s /bin/bash homeassistant
homeassistant@localhost:/home/saturday$ virtualenv -p python3 /srv/homeassistant
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /srv/homeassistant/bin/python3
Not overwriting existing python script /srv/homeassistant/bin/python (you must use /srv/homeassistant/bin/python3)
Installing setuptools, pip, wheel...done.
homeassistant@localhost:/home/saturday$ source /srv/homeassistant/bin/activate
(homeassistant) homeassistant@localhost:/home/saturday$ pip3 install -U homeassistant
Collecting homeassistant
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b06f0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0050>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0450>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b0d90>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0xf62b06d0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /pypi/web/simple/homeassistant/
  Could not find a version that satisfies the requirement homeassistant (from versions: )
No matching distribution found for homeassistant
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 16:29:15 | 显示全部楼层
27hh 发表于 2018-4-11 16:11
换源的里面http改成https

提示这个
QQ截图20180411162429.jpg
回复

使用道具 举报

0

主题

88

帖子

269

积分

中级会员

Rank: 3Rank: 3

积分
269
金钱
181
HASS币
0
发表于 2018-4-11 16:36:54 | 显示全部楼层
前来学习
回复

使用道具 举报

6

主题

106

帖子

479

积分

中级会员

Rank: 3Rank: 3

积分
479
金钱
373
HASS币
0
发表于 2018-4-11 16:37:01 | 显示全部楼层
27hh 发表于 2018-4-11 16:11
换源的里面http改成https

我在电脑上试了下,
这个网址,https://mirrors.ustc.edu.cn/pypi/web/simple/homeassistant/
可以打开
回复

使用道具 举报

32

主题

986

帖子

4233

积分

论坛元老

Rank: 8Rank: 8

积分
4233
金钱
3207
HASS币
110

教程狂人论坛风云人物

 楼主| 发表于 2018-4-11 22:36:38 | 显示全部楼层
marshmallow 发表于 2018-4-11 16:37
我在电脑上试了下,
这个网址,https://mirrors.ustc.edu.cn/pypi/web/simple/homeassistant/
可以打开 ...

啊??抱歉没遇到过这种问题。
回复

使用道具 举报

0

主题

17

帖子

86

积分

注册会员

Rank: 2

积分
86
金钱
69
HASS币
0
发表于 2018-4-13 11:40:42 | 显示全部楼层
thank you very much !
回复

使用道具 举报

0

主题

39

帖子

238

积分

中级会员

Rank: 3Rank: 3

积分
238
金钱
199
HASS币
0
发表于 2018-4-13 12:02:31 | 显示全部楼层
很好很强大,多谢分享,尝试一下!
回复

使用道具 举报

11

主题

177

帖子

764

积分

高级会员

Rank: 4

积分
764
金钱
586
HASS币
0
发表于 2018-4-13 23:34:10 | 显示全部楼层
本帖最后由 dsyulgz 于 2018-4-13 23:48 编辑

(homeassistant) homeassistant@localhost:/home/admin$ pip3 install homeassistant == 0.64.3
Invalid requirement: '=='
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/packaging/requirements.py", line 92, in __init__
    req = REQUIREMENT.parseString(requirement_string)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1617, in parseString
    raise exc
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1607, in parseString
    loc, tokens = self._parse( instring, 0 )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 3376, in parseImpl
    loc, exprtokens = e._parse( instring, loc, doActions )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 3698, in parseImpl
    return self.expr._parse( instring, loc, doActions, callPreParse=False )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1379, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 3359, in parseImpl
    loc, resultlist = self.exprs[0]._parse( instring, loc, doActions, callPreParse=False )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 1383, in _parseNoCache
    loc,tokens = self.parseImpl( instring, preloc, doActions )
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/pyparsing.py", line 2670, in parseImpl
    raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected Wabcd...) (at char 0), (line:1, col:1)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/req/req_install.py", line 82, in __init__
    req = Requirement(req)
  File "/srv/homeassistant/lib/python3.5/site-packages/pip/_vendor/packaging/requirements.py", line 96, in __init__
    requirement_string[e.loc:e.loc + 8]))
pip._vendor.packaging.requirements.InvalidRequirement: Invalid requirement, parse error at "'=='"

出错怎么解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-12-31 06:15 , Processed in 0.055006 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表