python request (1) 环境

  • 环境准备

requests   httpbin  virtualenv  pip  python

  • 安装

#mkdir /home/requests

#yum install -y python-pip

#pip freeze  看看pip安装了啥

#pip install virtualenv

#virtualenv .env

#source .env/bin/activate   进入到虚拟环境

#pip install requests

#python

>>import requests

#pip install gunicorn httpbin

#gunicorn httpbin:app

127.0.0.1:8000

 

 

 

 

    

posted @ 2017-12-22 23:30  一只宅男的自我修养  阅读(461)  评论(0编辑  收藏  举报