Windows Python requests 詳細模塊安裝方法

聽說requests是一個很吊的處理網絡問題的第三方庫.我折騰了半天.終於在Win上安裝好了.html

網上找到的都不詳細,我是反覆嘗試才成功的.python

仍是本身寫一個傻瓜式的指南吧:windows

 

1.安裝 Setuptools網絡

http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-setuptools
下載ez_setup.py,雙擊便可 命令行

2.安裝 piphtm

http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-pip
下載get-pip.py,雙擊便可ip

3.下載 requests 2.0.1get

https://pypi.python.org/pypi/requests/requests

4.安裝 requestspip

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,搞定

 

附:官方中文介紹:http://cn.python-requests.org/en/latest/

相關文章
相關標籤/搜索