Seeing as a few Redhat and CentOS 6.x users have been caught by Letsencrypt’s client requirements for Python 2.7, I decided to post a dedicated thread for installing Python 2.7 beside RHEL/CentOS 6.x default Python 2.6. CentOS/RHEL 7 users are fine as Python 2.7 is default unlike CentOS/RHEL 6.x default Python 2.6.
Update: Letsencrypt client re-added Python 2.6 support. However Centos 6.x at least doesn’t have python-virtualenv package, so requires EPEL yum repo for it https://github.com/letsencrypt/letsencrypt/pull/1241
For centos 6, you can install python 2.7 besides python 2.6 via IUS Community yum repo https://ius.io/GettingStarted/ and then install python 2.7
I tried this on Amazon Linux, which is a RHEL/Centos6 distro. I didn't need to use any external repos to install Python 2.7 and python -V returns 2.7.10… but when I try to run the letsencrypt install, I get this…
Sorry, I don't know how to bootstrap Let's Encrypt on your operating system!
You will need to bootstrap, configure virtualenv, and run a pip install manually
Please see Contributing — letsencrypt latest documentation
for more info
WARNING: Python 2.6 support is very experimental at present...
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!
I also have CentOS 6. (There is a huge installed base of CentOS6, I have a feeling this is goign to be a common problem)
I have installed python 2.7 and set it up as the default python
‘# alias python=/usr/local/bin/python2.7
’# python --version
Python 2.7.6
When I run the following:
./letsencrypt-auto --help
I get the following. Can someone explain what’s going on here?
Bootstrapping dependencies for RedHat-based OSes…
yum is /usr/bin/yum
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Package python-2.6.6-64.el6.x86_64 already installed and latest version
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
No package python-virtualenv available.
Nothing to do
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package gcc-4.4.7-16.el6.x86_64 already installed and latest version
Package dialog-1.1-9.20080819.1.el6.x86_64 already installed and latest version
Package augeas-libs-1.0.0-10.el6.x86_64 already installed and latest version
Package openssl-devel-1.0.1e-42.el6.x86_64 already installed and latest version
Package libffi-devel-3.0.5-3.2.el6.x86_64 already installed and latest version
Package redhat-rpm-config-9.0.3-44.el6.centos.noarch already installed and latest version
Package ca-certificates-2015.2.4-65.0.1.el6_6.noarch already installed and latest version
Nothing to do
WARNING: Python 2.6 support is very experimental at present…
if you would like to work on improving it, please ensure you have backups
and then run this script again with the --debug flag!