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

成功 !!

 

相关文章:

  • 2021-12-20
  • 2022-12-23
  • 2021-06-16
  • 2021-05-15
  • 2021-09-15
  • 2021-06-06
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-08-04
  • 2021-07-21
相关资源
相似解决方案