Pyenv on Amazon Linux fails to build due to openssl

Viewed 234

I’m having the exact same issue as referenced here with respect to compiling Python 3.7+ on Amazon Linux 2 using Pyenv. I’ve tried building openssl1.1 from source and still get the same error of build fails due to openssl not being compiled. Following the recommended instruction of setting the right flag variable to the path of openssl and then running Pyenv install still didn’t work. Does anyone have a solution for this on Amazon Linux?

1 Answers

This finally worked for me

sudo yum remove openssl-devel.x86_64
sudo yum autoremove
sudo yum install openssl11-devel
Related