Python 3 install in Mojave


brew install pyenv
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
pyenv install 3.7.1
Posted on Fri Dec 28 02:21:01 EST 2018 by Subhash Chandran
python mojave mac