In Red Hat, how do I system install python 3.6.1 when 2.7.5 is already installed?
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.
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.
Related videos on Youtube
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, 2022Comments
-
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.
-
Munir almost 7 yearstecadmin.net/install-python-3-6-on-centos might help
-
nuprap almost 7 yearsLinux 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
-
-
nuprap almost 7 yearsLinux 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