title: Using virtualenv on Mac OS X
body: <p>I've been using virtualenv on Ubuntu and it rocks, so I'm trying to use it on my Mac and I'm having trouble.</p>
  
  <p>The <code>virtualenv</code> command successfully creates the directory, and <code>easy_install</code> gladly installs packages in it, but I can't import anything I install. It seems like <code>sys.path</code> isn't being set correctly: it doesn't include the virtual <code>site-packages</code>, even if I use the <code>--no-site-packages</code> option. Am I doing something wrong?</p>
  
  <p>I'm using Python 2.5.1 and virtualenv 1.3.3 on Mac OS 10.5.6</p>
  
  <p><strong>Edit</strong>: Here's what happens when I try to use virtualenv:</p>
  
  <pre><code>$ virtualenv test
  New python executable in test/bin/python
  Installing setuptools............done.
  $ source test/bin/activate
  (test)$ which python
  /Users/Justin/test/bin/python
  (test)$ which easy_install
  /Users/Justin/test/bin/easy_install
  (test)$ easy_install webcolors
  [...]
  Installed /Users/Justin/test/lib/python2.5/site-packages/webcolors-1.3-py2.5.egg
  Processing dependencies for webcolors
  Finished processing dependencies for webcolors
  (test)$ python
  [...]
  &gt;&gt;&gt; import webcolors
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  ImportError: No module named webcolors
  &gt;&gt;&gt; import sys
  &gt;&gt;&gt; print sys.path
  ['',
   '/Library/Python/2.5/site-packages/SQLObject-0.10.2-py2.5.egg',
   '/Library/Python/2.5/site-packages/FormEncode-1.0.1-py2.5.egg',
   ...,
   '/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
   '/Users/Justin/test/lib/python25.zip',
   '/Users/Justin/test/lib/python2.5',
   '/Users/Justin/test/lib/python2.5/plat-darwin',
   '/Users/Justin/test/lib/python2.5/plat-mac',
   '/Users/Justin/test/lib/python2.5/plat-mac/lib-scriptpackages',
   '/Users/Justin/test/Extras/lib/python',
   '/Users/Justin/test/lib/python2.5/lib-tk',
   '/Users/Justin/test/lib/python2.5/lib-dynload',
   '/Library/Python/2.5/site-packages',
   '/Library/Python/2.5/site-packages/PIL']
  </code></pre>
  
  <p><strong>Edit 2</strong>: Using the <code>activate_this.py</code> script works, but running <code>source bin/activate</code> does not. Hopefully that helps narrow down the problem?</p>