forked from mirrors/thatmattlove-hyperglass
Installation: Clarify Python 3 on CentOS
CentOS 7 has Python 3.6 in the official repositories since some time. This allows us to get an almost modern Python interpreter onto the system without fiddling with PATH environment varible like SCL does.
This commit is contained in:
parent
c25cc5f3e1
commit
9c6f189c19
2 changed files with 18 additions and 2 deletions
|
|
@ -44,6 +44,14 @@ $ sudo apt install -y python3 python3-pip libssl-dev
|
|||
|
||||
<TabItem value="rhel">
|
||||
|
||||
You can install python from the CentOS 7 repository:
|
||||
|
||||
```shell-session
|
||||
$ sudo yum install python3-devel python3-pip
|
||||
```
|
||||
|
||||
But you can also use the [SCL repository](https://www.softwarecollections.org/en/scls/rhscl/rh-python36/)
|
||||
|
||||
```shell-session
|
||||
$ sudo yum install centos-release-scl
|
||||
$ sudo yum install rh-python36
|
||||
|
|
|
|||
|
|
@ -53,9 +53,17 @@ $ sudo apt install -y python3.6-dev python3-pip redis-server
|
|||
|
||||
<TabItem value="rhel">
|
||||
|
||||
You can install python from the CentOS 7 repository:
|
||||
|
||||
```shell-session
|
||||
$ sudo yum install epel-release centos-release-scl scl-utils python3-devel rh-python36
|
||||
$ sudo scl enable rh-python36
|
||||
$ sudo yum install python3-devel python3-pip
|
||||
```
|
||||
|
||||
But you can also use the [SCL repository](https://www.softwarecollections.org/en/scls/rhscl/rh-python36/)
|
||||
|
||||
```shell-session
|
||||
$ sudo yum install centos-release-scl
|
||||
$ sudo yum install rh-python36
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue