Skip to content

Instantly share code, notes, and snippets.

@darrenpmeyer
Created July 25, 2018 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenpmeyer/8bded1f46758bc80842c5f659722ef73 to your computer and use it in GitHub Desktop.
Save darrenpmeyer/8bded1f46758bc80842c5f659722ef73 to your computer and use it in GitHub Desktop.
Install most recent stable Python with pyenv
#!/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