Python 3.10.2 Centos 7 Install & Problems

Problems

I needed to update Python in one of my forgotten labs from 3.6 as Netmiko required 3.7 or higher.

So a quick Google and what I thought would be a straightforward install.
Turns out it wasn’t. CentOS 7 has a bug that complains about the SSL modules in Python not being available.

The fix to this came from the Python bug tracker: https://bugs.python.org/issue47201
Before running the “make” command be sure to run the following

Python Installation

Update CentOS

Install necessary packages

Download and extract Python

cd into the extracted Python directory

Run the following, this is where we will ensure that for CentOS 7 we patch the bug.

pATH pROBLEM

I had an error complaining about the fact that pip was no on PATH.

Fixed with the following

Check

Install Virtual Environments

Leave a Comment

Your email address will not be published. Required fields are marked *