1.安装python虚拟环境
easy_install virtualenveasy_install pip cd /home/admin virtualenv flask-website source flask-website/bin/activate #进入虚拟环境 deactivate #退出虚拟环境
2.安装flask及依赖包
pip install flask(flask-website)$python>>>import flask>>>#正常没报错,就说明安装flask成功