pyenv
was failing to install python due the inexistence of the pyexpat
library.
In order to solve this problem, I upgraded brew
, installed and uninstalled openssl
with brew
and installed the HEAD version of pyenv
.
Before installing the required python versions I exported the following flags:
CFLAGS="-I$(brew --prefix openssl)/include"
LDFLAGS="-L$(brew --prefix openssl)/lib"