In Red Hat, how do I system install python 3.6.1 when 2.7.5 is already installed?

21,563

Solution 1

If 3.5 is good enough, then use the Red Hat's Software Collection (RHSCL) version of Python, rh-python35. Installs happily alongside the older version of Python. https://access.redhat.com/documentation/en-US/Red_Hat_Software_Collections/2/html/2.4_Release_Notes/chap-RHSCL.html#sect-RHSCL-Features

Solution 2

Every time that i need to use multiple python versions on any system i use Pyenv, you can use it on a per user role or just use it globally.

Pyenv Website

From their readme:

pyenv lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

Share:
21,563

Related videos on Youtube

nuprap
Author by

nuprap

I'm just another geek trying to make a buck by fixing more things than I break... specializing in networking.

Updated on September 18, 2022

Comments

  • nuprap
    nuprap over 1 year

    I have rebuilt the VM; it is an out of the box install. I just need 3.6.1 installed and available for all users without 2.7.5 interfering with it. If it's easier / possible to uninstall 2.7.5, then I'm cool with that.

  • nuprap
    nuprap almost 7 years
    Linux version 3.10.0-514.el7.x86_64 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:24: 13 EDT 2016