python安装requests

问题: 在cmd窗口运行python,然后运行pip insyall requests报错:

解决办法:

   1.首先看下python的安装目录中是否有requests的包,我的是在Lib\site-packages\pip\_vendor\目录中,如果没有的话,要去第三方网站下载:http://www.lfd.uci.edu/~gohlke/pythonlibs 

              Ctrl+f搜索requests,并下载,下载后,将后缀名.whl改为.zip,并解压

    2.打开cmd界面,运行 :cd  /d  requests的路径

   3.运行 pip install requests即可:

 

posted @ 2017-06-28 15:55  智慧小姐  阅读(388)  评论(0编辑  收藏  举报