title: Error message for virtualenvwrapper on OS X Lion
body: <p>I've used homebrew to install python on a new Mac Lion installation, and have been trying to install virtualenv and virtualenvwrapper with pip, but when I start a new terminal session, I get this traceback:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  ImportError: No module named virtualenvwrapper.hook_loader
  virtualenvwrapper.sh: There was a problem running the initialization hooks. 
  
  If Python could not import the module virtualenvwrapper.hook_loader,
  check that virtualenv has been installed for
  VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
  set properly.
  </code></pre>
  
  <p>The python and pip used are from homebrew, but it seems to want me to use Apple's default python. I get the following</p>
  
  <pre><code>~$ which python | xargs ls -l
  lrwxr-xr-x  1 beard  admin  33 Jun 24 16:11 /usr/local/bin/python -&gt; ../Cellar/python/2.7.3/bin/python
  ~$ echo $VIRTUALENVWRAPPER_PYTHON
  /usr/local/bin/python
  ~$ which pip | xargs ls -l
  -rwxr-xr-x  1 beard  admin  301 Jun 24 16:18 /usr/local/share/python/pip
  ~$ which virtualenvwrapper.sh | xargs ls -l
  -rwxr-xr-x  1 beard  admin  32227 Jun 24 16:19 /usr/local/share/python/virtualenvwrapper.sh
  </code></pre>
  
  <p>However, it seems to think that I've installed pip (and virtualenv) with the system python in <code>/usr/bin/python</code></p>
  
  <p><strong>Edit:</strong> In my bashrc--</p>
  
  <pre><code>export WORKON_HOME="$HOME/py-env"
  export VIRTUALENVWRAPPER_LOG_DIR="$HOME/py-env"
  export VIRTUALENVWRAPPER_HOOK_DIR="$HOME/py-env"
  source /usr/local/share/python/virtualenvwrapper.sh
  export VIRTUALENVWRAPPER_PYTHON="/usr/local/bin/python"
  </code></pre>