Last active
October 27, 2019 16:16
-
-
Save rusdevops/3d3d977484c97267b9ba5ee5d3e6252c to your computer and use it in GitHub Desktop.
install python via linuxbrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install sqlite3 openssl zlib | |
# Install python | |
ZLIB_ROOT_PATH=$(brew --cellar zlib)/$(brew list --versions zlib | tr ' ' '\n' | tail -1) | |
ZLIB_INCLUDE_PATH=$ZLIB_ROOT_PATH/include | |
ZLIB_LIBRARY_PATH=$ZLIB_ROOT_PATH/lib | |
OPENSSL_INCLUDE_PATH=$(brew --prefix openssl)/include | |
OPENSSL_LIBRARY_PATH=$(brew --prefix openssl)/lib | |
SQLITE3_INCLUDE_PATH=$(brew --prefix sqlite3)/include | |
SQLITE3_LIBRARY_PATH=$(brew --prefix sqlite3)/lib | |
export CPPFLAGS="-I$ZLIB_INCLUDE_PATH -I$OPENSSL_INCLUDE_PATH -I$SQLITE3_INCLUDE_PATH" | |
export LDFLAGS="-L$ZLIB_LIBRARY_PATH -L$OPENSSL_LIBRARY_PATH -L$SQLITE3_LIBRARY_PATH" | |
pyenv install 3.6.5 | |
eval "$(pyenv init -)" | |
pyenv shell 3.6.5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment