- 积分
- 479
- 金钱
- 373
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 479
- 金钱
- 373
- HASS币
- 0
|
发表于 2018-4-11 16:25:17
|
显示全部楼层
还是不行。。。
* 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
|
|