Skip to content

Instantly share code, notes, and snippets.

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 lordofthedanse/d1997b2d5b471589a963f2f887d92978 to your computer and use it in GitHub Desktop.
Save lordofthedanse/d1997b2d5b471589a963f2f887d92978 to your computer and use it in GitHub Desktop.
Install Homebrew
1. xcode-select --install
2. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3. brew doctor
Install Python3 using Homebrew
1. brew install python3
Install packages for Python3
1. pip3 install [package name without brackets]
Using Python3 as a Build System in SublimeText3
1. Select: Tools -> Build System -> New Build System
2. Replace default text with lines below:
{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]File \"(...?)\", line ([0-9]*)",
"selector": "source.python"
}
3. Save the file as: python3.sublime-build
4. To run .py files with python 3, select Tools -> Build system -> python3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment