title: Trouble with attribute 'cli' in a fresh Flask install
body: <p>To run the flask examples off the repo, I clone the latest stable, create a virtual environment, activate it, pip install flask, and try to run flaskr.py. The following script goes through this sequence.</p>
  
  <pre><code>#!/bin/bash
  
  NEWROOT=${HOME}/flask
  mkdir $NEWROOT
  git clone https://github.com/mitsuhiko/flask.git $NEWROOT/repo
  virtualenv $NEWROOT/venv
  
  source $NEWROOT/venv/bin/activate
  pip install flask
  cd $NEWROOT/repo/examples/flaskr/
  python flaskr.py
  </code></pre>
  
  <p>The last line fails with</p>
  
  <pre><code>Traceback (most recent call last):
    File "flaskr.py", line 48, in &lt;module&gt;
      @app.cli.command('initdb')
  AttributeError: 'Flask' object has no attribute 'cli'
  </code></pre>
  
  <p>What am I missing?</p>
  
  <p>In this context I also do not understand: if I do not run "pip install flask", I get</p>
  
  <pre><code>Traceback (most recent call last):
    File "flaskr.py", line 15, in &lt;module&gt;
      from flask import Flask, request, session, g, redirect, url_for, abort, \
  ImportError: No module named flask
  </code></pre>
  
  <p>If I do, I get the earlier error. Hence it appears that "pip install flask" did indeed install flask, but I don't see flask (not even as a symlink) in the newly created ${HOME}/flask/venv. Where was flask installed?</p>
  
  <p>Python 2.7.10 (from MacPorts); pip 1.5.6; OS X 10.9.5</p>