Skip to content

Commit c207337

Browse files
DubhAdfabaff
authored andcommitted
Bumped to Python 3.6 from 3.4 (home-assistant#4891)
Skipped 3.5 because it provides 3.5.1.
1 parent 2d37b3a commit c207337

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/_docs/installation/centos.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ sharing: true
99
footer: true
1010
---
1111

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.
1313

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.
1515

1616
### {% linkable_title Using Software Collections %}
1717

@@ -21,21 +21,21 @@ First of all install the software collection repository as root. For example, on
2121
$ yum install centos-release-scl
2222
```
2323

24-
Then install the Python 3.5 package:
24+
Then install the Python 3.6 package:
2525

2626
```bash
27-
$ yum install rh-python35
27+
$ yum install rh-python36
2828
```
2929

3030
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:
3131

3232
```bash
3333
$ scl enable rh-python35 bash
3434
$ python --version
35-
Python 3.5.1
35+
Python 3.6.3
3636
```
3737

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).
3939

4040
You will need to enable the software collection each time you log on before you activate your virtual environment.
4141

0 commit comments

Comments
 (0)