据说requests是一个很吊的处理网络问题的第三方库.我折腾了半天.终于在Win上安装好了.
网上找到的都不详细,我是反复尝试才成功的.
还是自己写一个傻瓜式的指南吧:
1.安装 Setuptools
http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-setuptools
下载ez_setup.py,双击即可
2.安装 pip
http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-pip
下载get-pip.py,双击即可
3.下载 requests 2.0.1
https://pypi.python.org/pypi/requests/
4.安装 requests
1)把requests-2.0.1文件夹放到C盘,比如C:\Python27\requests-2.0.1
2)windows 命令行,依次输入两行:
cd C:\Python27\requests-2.0.1
setup.py install
5.重启Python,搞定