[SOLVED]Error installing the client CentOS 6.7

CentOS 6.x runs python 2.6.6 but letsencrypt client requires python 2.7 https://github.com/letsencrypt/letsencrypt/issues/1106

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

yum -y install python27 python27-devel python27-pip python27-setuptools python27-tools python27-virtualenv --enablerepo=ius

then do what i do and replace python2 with python 2.7 in letsencrypt-auto script

git clone https://github.com/letsencrypt/letsencrypt
cd letsencrypt
sed -i "s|--python python2|--python python2.7|" letsencrypt-auto
./letsencrypt-auto --verbose