Skip to content

Installing on macOS

Sydney Erickson edited this page Jun 28, 2017 · 12 revisions

Make sure to check out the General Notes page before using this guide

Package Manager Choices

Installing Dependencies using Homebrew

First, we will install a package manager to help install Python 3. You can install it from python.org, but I've found that it throws SSL errors. Plus, using a package manager allows for easier updating of Python.

I use Homebrew, and that's what this tutorial will use, but you're welcome to use a different one. The command below should install Homebrew.

Homebrew will automatically pull all of macOS's headers and libraries for development use. If you don't use Homebrew, you will need to manually install the command line tools or Xcode.

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Next, we will install Python 3.

$ brew install python3

You can now follow these instructions to install the rest of the bot


Installing Dependencies using MacPorts

You will first need to install Xcode and the Xcode Command Line Tools. You can find Xcode in the App Store, or here. You can get the Xcode Command Line Tools by running a developer command like make in the shell.

Then agree to the Xcode license.

sudo xcodebuild -license

Then install MacPorts itself, selecting the right one for your version of macOS.

Now we can install Python and pip

sudo port install python36 py36-pip

You can now follow these instructions to install the rest of the bot