mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
Updated SCL command to Python 3.6 instead of 3.5 (#4912)
* Updated SCL command to Python 3.6 instead of 3.5 Instructions are for installing Python 3.6 but the scl command given assumes you have Python 3.5 * Updated autostart systemd template to use Python 3.6
This commit is contained in:
parent
07c6bd5a56
commit
f7b3b06d30
@ -30,7 +30,7 @@ $ yum install rh-python36
|
|||||||
Once installed, switch to your `homeassistant` user (if you've set one up), enable the software collection and check that it has set up the new version of Python:
|
Once installed, switch to your `homeassistant` user (if you've set one up), enable the software collection and check that it has set up the new version of Python:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ scl enable rh-python35 bash
|
$ scl enable rh-python36 bash
|
||||||
$ python --version
|
$ python --version
|
||||||
Python 3.6.3
|
Python 3.6.3
|
||||||
```
|
```
|
||||||
@ -55,7 +55,7 @@ User=homeassistant
|
|||||||
Environment=VIRTUAL_ENV="/srv/homeassistant"
|
Environment=VIRTUAL_ENV="/srv/homeassistant"
|
||||||
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
|
Environment=PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
# ExecStart using software collection:
|
# ExecStart using software collection:
|
||||||
ExecStart=/usr/bin/scl enable rh-python35 -- /srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
|
ExecStart=/usr/bin/scl enable rh-python36 -- /srv/homeassistant/bin/hass -c "/home/homeassistant/.homeassistant"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user