Created
July 25, 2018 21:09
-
-
Save darrenpmeyer/8bded1f46758bc80842c5f659722ef73 to your computer and use it in GitHub Desktop.
Install most recent stable Python with pyenv
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
#!/usr/bin/env bash | |
# Get most recent version number of CPython, excluding rc, dev, pypy, etc. | |
pyver=$(pyenv install --list | grep -v '[^0-9. ]' | sort -r | head -n1 | awk '{print $1}') | |
# install it | |
pyenv install $pyver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment