To use a software collection you have to enable it: scl enable rh-python36 bash # yum -y install yum -y install rh-python36 # subscription-manager repos -enable rhel-7-server-optional-rpms \ In a nutshell, to install Python 3.6 via Red Hat Software Collections: $ su. It covers installing and using Python 3 from RHSCL, using Python Virtual Environments, and a number of tips for working with software collections and working with Python on RHEL. If you break yum it can be difficult to restore your system.įor more info, see How to install Python 3, pip, venv, virtualenv, and pipenv on RHEL on. If you compile Python from source, do not do a make install as root. Take a look at /bin/yum, it is a Python script that starts with #!/usr/bin/python. While you can install those, they aren't the Red Hat supported packages for RHEL.Īlso, the top voted answer gives bad advice - On RHEL you do not want to change /usr/bin/python, /usr/bin/python2 because you will likely break yum and other RHEL admin tools. ![]() Also many of the answers above point to the CentOS software collections. The EPEL and IUS packages are not supported by Red Hat. If you are on RHEL and want a Red Hat supported Python, use Red Hat Software collections (RHSCL).
0 Comments
Leave a Reply. |