windows下安装requests模块 到python,eclipse可用

requests是python的一个很好用的网络http等协议模拟的模块,官网上提供了Linux下的安装,windows下安装如下:

1 .默认已经安装好python 和 eclipse,且eclipse可以编译python

2. 在官网下载源码:http://cn.python-requests.org/en/latest/user/install.html#distribute-pip 

3. 解压缩

4. windows下cmd命令行模式进入上述解压的文件的子文件夹(有setup.py文件的文件路径)

5.输入命令python setup.py install

即可完成安装,安装后,eclipse下直接import requests就可以使用该模块


你可能感兴趣的:(eclipse,http,python,requests,网络协议模拟)