bhp 阅读笔记 OSX 下 setuptools pip 安装

安装 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()

成功 !!

+V d2h5X251bGw= 请备注:from博客园
原文地址:https://www.cnblogs.com/hangj/p/4973000.html