On macOS 10.10 or higher, the easiest way to install Python, pip, and FlexGet is using Homebrew, also known as simply Brew. (This may work on prior versions of macOS, but Homebrew is not officially supported prior to 10.10.)
First, open Terminal and install the Xcode Command Line Tools using this command:
$ xcode-select --install
Then install Homebrew using this command:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Once Homebrew has been installed, modify your PATH. Edit your
$ nano ~/.bash_profile
Add this at the bottom by using your arrow keys to navigate and pasting it on a new line.
Press Control+X which will prompt you to save (press Y then Enter) and exit.
Run this command so your shell reflects the changes you just made:
$ source ~/.bash_profile
Go to the next page to install Python and pip.
There are other methods that can be used to install Flexget, particularly on older versions of macOS. They have been moved to a separate page available here.