Skip to content

Instantly share code, notes, and snippets.

@t-eckert
Created May 13, 2019 02:11
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 t-eckert/8a7432b44214ede8b1a39b82a0ea1af7 to your computer and use it in GitHub Desktop.
Save t-eckert/8a7432b44214ede8b1a39b82a0ea1af7 to your computer and use it in GitHub Desktop.
Bash profile for multiple Python versions (py3x -> Python 3.x) [MacOS only]
# == Add Python Aliases and Paths ==========================================================
# Python 3.6
alias py36="/Library/Frameworks/Python.framework/Versions/3.6/bin/Python3.6"
PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"
export PATH
# Python 3.7
alias py37="/Library/Frameworks/Python.framework/Versions/3.7/bin/Python3.7"
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
# Python 3.8
alias py38="/Library/Frameworks/Python.framework/Versions/3.8/bin/Python3.8"
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH
# ==============================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment