Update for Python 3.8 (#10665)

This commit is contained in:
Fabian Affolter 2019-10-08 16:55:32 +02:00 committed by GitHub
parent 5b41bb0abc
commit 0064a22f34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,12 +11,6 @@ Install the development package of Python.
sudo dnf -y install python3-devel redhat-rpm-config sudo dnf -y install python3-devel redhat-rpm-config
``` ```
and Home Assistant itself.
```bash
pip3 install homeassistant
```
To isolate the Home Assistant installation a [`venv`](https://docs.python.org/3/library/venv.html) is handy. First create a new directory to store the installation and adjust the permissions. To isolate the Home Assistant installation a [`venv`](https://docs.python.org/3/library/venv.html) is handy. First create a new directory to store the installation and adjust the permissions.
```bash ```bash
@ -24,19 +18,20 @@ sudo mkdir -p /opt/homeassistant
sudo useradd -rm homeassistant -G dialout sudo useradd -rm homeassistant -G dialout
sudo chown -R homeassistant:homeassistant /opt/homeassistant sudo chown -R homeassistant:homeassistant /opt/homeassistant
``` ```
Now switch to the new directory, setup the `venv`, and activate it. Now switch to the new directory, setup the `venv`, and activate it.
```bash ```bash
sudo -u homeassistant -H -s sudo -u homeassistant -H -s
cd /opt/homeassistant cd /opt/homeassistant
python3.6 -m venv . python3.8 -m venv .
source bin/activate source bin/activate
``` ```
Install Home Assistant itself. Install Home Assistant itself.
```bash ```bash
$ pip3 install homeassistant colorlog pip3 install homeassistant colorlog
``` ```
Check the [autostart](/docs/autostart/systemd/) section in the documentation for further details and the [Firewall section](/docs/installation/troubleshooting/#no-access-to-the-frontend) if you want to access your Home Assistant installation. Check the [autostart](/docs/autostart/systemd/) section in the documentation for further details and the [Firewall section](/docs/installation/troubleshooting/#no-access-to-the-frontend) if you want to access your Home Assistant installation.