Error when running letsencrypt-auto on AWS EC2 AMI

I run this…
sudo ./letsencrypt-auto --debug

And get this? Any ideas?:
Updating letsencrypt and virtual environment dependencies…Command “/root/.local/share/letsencrypt/bin/python2.7 -c “import setuptools, tokenize;file=’/tmp/pip-build-QZA_IL/cffi/’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-DoYxZ8-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cffi” failed with error code 1 in /tmp/pip-build-QZA_IL/cffi

Is this happening on a t2.nano instance? cffi issues are common on low-memory systems. Try stopping all other services or add a swap disk.

Actually, it was because EC2 AMI runs python 2.6

Experimental support for python 2.6 exists and did work during my tests on AMI. How did you manage to solve the problem? (For future reference or people finding this post via search :smile:)

I upgraded my EC2 instance to use Python 2.7 by using this guide: