![]() the SCL yum repo has python version 3.8 as of the date of this writing (despite the question still referencing the older python 3.4 version).rhel and centos version 7 are now on python 3.6 by default i believe.Yum install rhscl-rh-python34-*.noarch.rpm Install the repo package (on RHEL you will need to enable optional channel first): # (See the Yum Repositories on external link. Download a package with repository for your system. Įdit Follow these instructions to install Python 3.4 on RHEL 6/7 or CentOS 6/7: # 1. first-party RPMs instead of third-party). Using the SCL yum repos may be better than other yum repos because the RPMs are developed/tested by Redhat (i.e. How to install Python 3.6 on CentOS 7 sudo yum install -y Īlong with Python 2.7 and 3.3, Red Hat Software Collections now includes Python 3.4 - all work on both RHEL 6 and 7. Sudo yum install -y python36u python36u-pip How to install Python 3.6 on CentOS 6 sudo yum install -y The guys behind are from Rackspace, so I think that they are quite trustworthy. The IUS Community provides some up-to-date packages for RHEL & CentOS. WARNING: the pyenv script is deprecated in favour of `python3.6 -m venv` If you use the pyvenv script, you'll get a WARNING: $ pyvenv-3.6 /tmp/foo You can create your virtualenv using pyvenv: python3.6 -m venv /tmp/foo Sudo yum install -y python36 python36-pip With CentOS7, pip3.6 is provided as a package :) sudo yum install -y epel-release ![]() You can create your virtualenv using pyvenv: pyvenv /tmp/foo Sudo yum install -y python34-setuptools # install easy_install-3.4 How to install Python 3.4 on CentOS 6 sudo yum install -y epel-release Red Hat has added through the EPEL repository: If you work in a cloud environment with multiple VMs, compiling python3 on each VMs is not acceptable. you can install and uninstall (properly) python3.Installing from RPM is generally better, because:
0 Comments
Leave a Reply. |