Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Created September 15, 2022 15:34
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 remarkablemark/9c5365776fee78221757faa734419c40 to your computer and use it in GitHub Desktop.
Save remarkablemark/9c5365776fee78221757faa734419c40 to your computer and use it in GitHub Desktop.

Set up Python 2 on macOS

Install pyenv:

brew install pyenv

Create symbolic link:

sudo ln -s -f /Users/remarkablemark/.pyenv/versions/2.7.18/bin/python /usr/local/bin/python

Add to .aliases:

echo "python='/usr/local/bin/python'" >> ~/.aliases

Verify versions:

pyenv versions
* system (set by /Users/remarkablemark/.pyenv/version)
  2.7.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment