1 install pip
py2 wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
py3 sudo apt-get install python3-pip
2. install virtualenv
sudo pip3 install virtualenv
3.make project
mkdir project_name && cd project_name && virtualenv venv && source ./vent/bin/activate
4.install sqlite3
http://www.sqlite.org/download.html download sqlite-autoconf-xx
tar xvfz sqlite-autoconf-xx
./configuare && sudo make && sudo make install
创建数据库 sqlite3 /tmp/flaskr.db < schema.sql