Update install docs with Python3.9 instruction

I have updated Install System Packages section with updated installation instructions for RHEL and CentOS systems to install Python3.9.
This commit is contained in:
neope 2021-10-31 00:04:59 +02:00 committed by GitHub
parent a090955918
commit 7202710fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,28 @@ Begin by installing all system packages required by NetBox and its dependencies.
=== "CentOS"
```no-highlight
sudo yum install -y gcc python36 python36-devel python3-pip libxml2-devel libxslt-devel libffi-devel libpq-devel openssl-devel redhat-rpm-config
sudo yum install -y gcc libxml2-devel libxslt-devel libffi-devel libpq-devel openssl-devel redhat-rpm-config
```
Download Python from source (with X indicate the minor release):
```no-highlight
wget https://www.python.org/ftp/python/3.9.X/Python-3.9.X.tgz
```
Extract the tarball:
```no-highlight
tar xzf Python-3.9.X.tgz
```
Enter into directory and compile with altinstall options (in this way you could maintain the old installation):
```no-highlight
cd Python-3.9.X
sudo ./configure --enable-optimizations
sudo make altinstall
```
To check if Python is installed correctly you could perform:
```no-highlight
python3.9 -V
```
Now you could remove Python extract directory and relative Python tarball
Before continuing with either platform, update pip (Python's package management tool) to its latest release: