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