You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_docs/installation/centos.markdown
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ sharing: true
9
9
footer: true
10
10
---
11
11
12
-
To run Python 3.x on [CentOS](https://www.centos.org/) or RHEL (Red Hat Enterprise Linux), [Software Collections](https://www.softwarecollections.org/en/scls/rhscl/rh-python34/) needs to be activated first.
12
+
To run Python 3.x on [CentOS](https://www.centos.org/) or RHEL (Red Hat Enterprise Linux), [Software Collections](https://www.softwarecollections.org/en/scls/rhscl/rh-python36/) needs to be activated first.
13
13
14
-
There are effort in progress to bring Python 3.4 to [Extra Packages for Enterprise Linux (EPEL)](https://fedoraproject.org/wiki/EPEL) which will allow you to follow the [Fedora Instructions](/docs/installation/fedora/).
14
+
You must install Python 3.5.3 or later. Software Collections version of Python 3.5 is 3.5.1 so this guide uses Python 3.6.
15
15
16
16
### {% linkable_title Using Software Collections %}
17
17
@@ -21,21 +21,21 @@ First of all install the software collection repository as root. For example, on
21
21
$ yum install centos-release-scl
22
22
```
23
23
24
-
Then install the Python 3.5 package:
24
+
Then install the Python 3.6 package:
25
25
26
26
```bash
27
-
$ yum install rh-python35
27
+
$ yum install rh-python36
28
28
```
29
29
30
30
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:
31
31
32
32
```bash
33
33
$ scl enable rh-python35 bash
34
34
$ python --version
35
-
Python 3.5.1
35
+
Python 3.6.3
36
36
```
37
37
38
-
You will be in a command shell set up with Python 3.5 as your default version. The virtualenv and pip commands will be correct for this version, so you can now create a virtual environment and install Home Assistant following the main [instructions](https://home-assistant.io/docs/installation/virtualenv/#step-4-set-up-the-virtualenv).
38
+
You will be in a command shell set up with Python 3.6 as your default version. The virtualenv and pip commands will be correct for this version, so you can now create a virtual environment and install Home Assistant following the main [instructions](https://home-assistant.io/docs/installation/virtualenv/#step-4-set-up-the-virtualenv).
39
39
40
40
You will need to enable the software collection each time you log on before you activate your virtual environment.
0 commit comments