title: Trouble running virtualenv on OS X 10.9.1 with python 2.7.6 from Homebrew
body: <p>I installed Python 2.7.6 via the following guide: <a href="http://hackercodex.com/guide/python-development-environment-on-mac-osx/" rel="nofollow">http://hackercodex.com/guide/python-development-environment-on-mac-osx/</a>.  However, when I run:</p>
  
  <pre><code>$ virtualenv test
  </code></pre>
  
  <p>I get the following output: </p>
  
  <pre><code>Traceback (most recent call last):
    File "/usr/local/bin/virtualenv", line 9, in &lt;module&gt;
      load_entry_point('virtualenv==1.11', 'console_scripts', 'virtualenv')()
    File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 820, in main
      symlink=options.symlink)
    File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 980, in create_environment
      site_packages=site_packages, clear=clear, symlink=symlink))
    File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1176, in install_python
      copy_required_modules(home_dir, symlink)
    File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1114, in copy_required_modules
      dst_filename = change_prefix(filename, dst_prefix)
    File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py", line 1079, in change_prefix
      (filename, prefixes)
  AssertionError: Filename /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/readline.so does not start with any of these prefixes: ['/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/Extras/lib/python', '/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7', '/Users/Charlie/Library/Python/2.7/lib/python/site-packages', '/Users/Charlie/.local/lib/python/2.7/site-packages', '/Users/Charlie/Library/Python/2.7/site-packages', '/Library/Python/2.7/site-packages']
  </code></pre>
  
  <p>It seems like virtualenv is grabbing the System python instead of the Homebrew Python 2.7.6 but I cannot figure out why.  </p>
  
  <p>Any help would be greatly appreciated!</p>