pygame install notes

Error:
In file included from src/scrap.c:28:
/Library/Frameworks/SDL.framework/Versions/Current/Headers/SDL_syswm.h:58:10: fatal error: 'X11/Xlib.h' file not found
#include
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

Repair:
https://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion
sudo ln -s /opt/X11/include/X11 /usr/local/include/X11

Notes from previous parts of the same install:

Last login: Thu Jun 1 12:40:56 on ttys000
Zanes-MacBook-Air-2:~ Jasper$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
Password:
^Z
[1]+ Stopped /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Zanes-MacBook-Air-2:~ Jasper$
Zanes-MacBook-Air-2:~ Jasper$ ls
Applications Documents Movies Public test1.py
Battleshipinprogress.py Downloads Music SomeLocalDir
Desktop Library Pictures Untitled.py
Zanes-MacBook-Air-2:~ Jasper$ brew install mercurial
Updating Homebrew...
==> Installing dependencies for mercurial: readline, sqlite, gdbm, openssl, python
==> Installing mercurial dependency: readline
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: Failure while executing: git config --local --replace-all homebrew.private true
Zanes-MacBook-Air-2:~ Jasper$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
Warning: This script will remove:
/Library/Caches/Homebrew/
/Users/Jasper/Library/Caches/Homebrew/
/usr/local/Cellar/
/usr/local/Homebrew/
/usr/local/Homebrew/.github/
/usr/local/Homebrew/.gitignore
/usr/local/Homebrew/.travis.yml
/usr/local/Homebrew/.yardopts
/usr/local/Homebrew/CODEOFCONDUCT.md
/usr/local/Homebrew/CONTRIBUTING.md
/usr/local/Homebrew/LICENSE.txt
/usr/local/Homebrew/Library/
/usr/local/Homebrew/Library/Homebrew/test/.bundle/
/usr/local/Homebrew/README.md
/usr/local/Homebrew/bin/brew
/usr/local/Homebrew/completions/
/usr/local/Homebrew/docs/
/usr/local/Homebrew/manpages/
/usr/local/bin/brew -> /usr/local/Homebrew/bin/brew
/usr/local/etc/bash_completion.d/brew -> /usr/local/Homebrew/completions/bash/brew
/usr/local/share/doc/homebrew -> /usr/local/Homebrew/docs
/usr/local/share/man/man1/brew-cask.1 -> /usr/local/Homebrew/manpages/brew-cask.1
/usr/local/share/man/man1/brew.1 -> /usr/local/Homebrew/manpages/brew.1
/usr/local/share/zsh/site-functions/_brew -> /usr/local/Homebrew/completions/zsh/_brew
/usr/local/share/zsh/site-functions/_brew_cask -> /usr/local/Homebrew/completions/zsh/_brew_cask
/usr/local/var/homebrew/locks/update
Are you sure you want to uninstall Homebrew? [y/N] y
==> Removing Homebrew installation...
==> Removing empty directories...
==> /usr/bin/sudo /usr/bin/find /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var -name .DS_Store -delete
==> /usr/bin/sudo /usr/bin/find /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var -depth -type d -empty -exec rmdir {} ;
==> Homebrew uninstalled!
The following possible Homebrew files were not deleted:
/usr/local/bin/
/usr/local/etc/
/usr/local/share/
/usr/local/var/
You may wish to remove them yourself.
Zanes-MacBook-Air-2:~ Jasper$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share/zsh
/usr/local/share/zsh/site-functions

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions
Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown Jasper /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /bin/mkdir -p /Users/Jasper/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/Jasper/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Jasper /Users/Jasper/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown Jasper /Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
^[^[^[Didn't get a response from the Apple Software Update server.
==> Installing
==> /usr/bin/sudo /usr/sbin/softwareupdate -i
Software Update Tool

: No such update
No updates are available.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
Zanes-MacBook-Air-2:~ Jasper$ code-select --install
-bash: code-select: command not found
Zanes-MacBook-Air-2:~ Jasper$ xcode-select --install,
xcode-select: error: invalid argument '--install,'
Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).

Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s , --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
Zanes-MacBook-Air-2:~ Jasper$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Zanes-MacBook-Air-2:~ Jasper$ xcode-select --install,
xcode-select: error: invalid argument '--install,'
Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).

Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s , --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
Zanes-MacBook-Air-2:~ Jasper$ brew install mercurial
-bash: /usr/local/bin/brew: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ ls
Applications Documents Movies Public test1.py
Battleshipinprogress.py Downloads Music SomeLocalDir
Desktop Library Pictures Untitled.py
Zanes-MacBook-Air-2:~ Jasper$ python -version
Unknown option: -e
usage: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Zanes-MacBook-Air-2:~ Jasper$ python3 -version
Unknown option: -e
usage: /Library/Frameworks/Python.framework/Versions/3.5/Resources/Python.app/Contents/MacOS/Python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
Zanes-MacBook-Air-2:~ Jasper$ brew install mercurial
-bash: /usr/local/bin/brew: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ hg
-bash: hg: command not found
Zanes-MacBook-Air-2:~ Jasper$ brew install git
-bash: /usr/local/bin/brew: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ brew info
-bash: /usr/local/bin/brew: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ show brew
-bash: show: command not found
Zanes-MacBook-Air-2:~ Jasper$ /Developer/usr/bin/xcodebuild -version
-bash: /Developer/usr/bin/xcodebuild: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ cd /Developer/usr/bin/
-bash: cd: /Developer/usr/bin/: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ cd ~/Developer/usr/bin/xcodebuild -version
-bash: cd: /Users/Jasper/Developer/usr/bin/xcodebuild: No such file or directory
Zanes-MacBook-Air-2:~ Jasper$ ls
Applications Documents Movies Public test1.py
Battleshipinprogress.py Downloads Music SomeLocalDir
Desktop Library Pictures Untitled.py
Zanes-MacBook-Air-2:~ Jasper$ pwd
/Users/Jasper
Zanes-MacBook-Air-2:~ Jasper$ cd ..
Zanes-MacBook-Air-2:Users Jasper$ ls
Guest Jasper Shared ZaneScott matthewscott
Zanes-MacBook-Air-2:Users Jasper$ cd ..
Zanes-MacBook-Air-2:/ Jasper$ ls
Applications bin private
Developer cores sbin
Library dev tmp
Network etc usr
System home var
User Information installer.failurerequests vm
Users net
Volumes opt
Zanes-MacBook-Air-2:/ Jasper$ cd /Developer/usr/bin/
-bash: cd: /Developer/usr/bin/: No such file or directory
Zanes-MacBook-Air-2:/ Jasper$ cd Developer/
Zanes-MacBook-Air-2:Developer Jasper$ cd usr
-bash: cd: usr: No such file or directory
Zanes-MacBook-Air-2:Developer Jasper$ ls
Python
Zanes-MacBook-Air-2:Developer Jasper$ cd ..
Zanes-MacBook-Air-2:/ Jasper$ ls
Applications bin private
Developer cores sbin
Library dev tmp
Network etc usr
System home var
User Information installer.failurerequests vm
Users net
Volumes opt
Zanes-MacBook-Air-2:/ Jasper$ cd Developer/
Zanes-MacBook-Air-2:Developer Jasper$ ls
Python
Zanes-MacBook-Air-2:Developer Jasper$ cd ..
Zanes-MacBook-Air-2:/ Jasper$ ls
Applications bin private
Developer cores sbin
Library dev tmp
Network etc usr
System home var
User Information installer.failurerequests vm
Users net
Volumes opt
Zanes-MacBook-Air-2:/ Jasper$ cd bin
Zanes-MacBook-Air-2:bin Jasper$ ls
[ date expr ln pwd sync
bash dd hostname ls rm tcsh
cat df kill mkdir rmdir test
chmod domainname ksh mv sh unlink
cp echo launchctl pax sleep wait4path
csh ed link ps stty zsh
Zanes-MacBook-Air-2:bin Jasper$ xcodebuild -version
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Zanes-MacBook-Air-2:bin Jasper$ xcode-select
xcode-select: error: no command option given
Usage: xcode-select [options]

Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).

Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s , --switch set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
Zanes-MacBook-Air-2:bin Jasper$ xcode-select -v
xcode-select version 2347.
Zanes-MacBook-Air-2:bin Jasper$ xcode-build
-bash: xcode-build: command not found
Zanes-MacBook-Air-2:bin Jasper$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Zanes-MacBook-Air-2:bin Jasper$ xcode-select --install
xcode-select: note: install requested for command line developer tools
Zanes-MacBook-Air-2:bin Jasper$ ls
[ date expr ln pwd sync
bash dd hostname ls rm tcsh
cat df kill mkdir rmdir test
chmod domainname ksh mv sh unlink
cp echo launchctl pax sleep wait4path
csh ed link ps stty zsh
Zanes-MacBook-Air-2:bin Jasper$ pwd
/bin

Zanes-MacBook-Air-2:bin Jasper$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:

Zanes-MacBook-Air-2:bin Jasper$ brew info xlib
Error: No available formula with the name "xlib"
==> Searching for a previously deleted formula...
Error: No previously deleted formula found.
Zanes-MacBook-Air-2:bin Jasper$ brew search xlib
No formula found for "xlib".
Zanes-MacBook-Air-2:bin Jasper$ brew search xlib
^C
Zanes-MacBook-Air-2:bin Jasper$ pip3 install pygame