1.通过pip安装
$ pip
install
requests
2.或者,下载代码后安装:
$ git clone git:
//github
.com
/kennethreitz/requests
.git
$
cd
$ python setup.py
instal
再懒一点,通过IDE安装吧,如pycharm!