安装 python-setuptools python-pip
尝试 brew install python-setuptools 失败
brew update 失败
$ cd `brew --prefix` $ git remote add origin https://github.com/Homebrew/homebrew.git $ git fetch origin $ git reset --hard origin/master $ brew update
update success!
安装 setuptools
wget https://bootstrap.pypa.io/ez_setup.py
sudo python ez_setup.py
sudo easy_install pip
sudo pip install github3.py
hangjdeMacBook-Pro:~ hangj$ python
Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import github3
>>> exit()
成功 !!
原文:http://www.cnblogs.com/hangj/p/4973000.html