赞
踩
Our first step will be to install all of the pieces that we need from the repositories. We will install pip
, the Python package manager, in order to install and manage our Python components. We will also get the Python development files needed to build some of the Gunicorn components. We’ll install Nginx now as well.
sudo apt-get update
sudo apt-get install python-pip python-dev nginx
sudo pip install virtualenv
Next, we’ll set up a virtual environment in order to isolate our Flask application from the other Python files on the system.work inside the flask project dirctory.
sudo pip install virtualenv
source myprojectenv/bin/activate
pip install gunicorn flask
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。