title: Virtualenv shell errors
body: <p>I've just installed virtualenv (with Python 2.7.2) on my Mac, and I followed the guide here: <a href="http://virtualenvwrapper.readthedocs.org/en/latest/install.html">http://virtualenvwrapper.readthedocs.org/en/latest/install.html</a></p>
  
  <p>But I now get the following errors when I start up my shell every time:</p>
  
  <pre><code>stevedore.extension Could not load 'user_scripts': distribute
  stevedore.extension distribute
  Traceback (most recent call last):
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 62, in __init__
      invoke_kwds,
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 74, in _load_one_plugin
      plugin = ep.load()
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1953, in load
      if require: self.require(env, installer)
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1966, in require
      working_set.resolve(self.dist.requires(self.extras),env,installer))
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
      raise DistributionNotFound(req)  # XXX put more info here
  DistributionNotFound: distribute
  stevedore.extension Could not load 'project': distribute
  stevedore.extension distribute
  Traceback (most recent call last):
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 62, in __init__
      invoke_kwds,
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 74, in _load_one_plugin
      plugin = ep.load()
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1953, in load
      if require: self.require(env, installer)
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1966, in require
      working_set.resolve(self.dist.requires(self.extras),env,installer))
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
      raise DistributionNotFound(req)  # XXX put more info here
  DistributionNotFound: distribute
  stevedore.extension Could not load 'user_scripts': distribute
  stevedore.extension distribute
  Traceback (most recent call last):
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 62, in __init__
      invoke_kwds,
    File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 74, in _load_one_plugin
      plugin = ep.load()
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1953, in load
      if require: self.require(env, installer)
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1966, in require
      working_set.resolve(self.dist.requires(self.extras),env,installer))
    File "/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
      raise DistributionNotFound(req)  # XXX put more info here
  DistributionNotFound: distribute
  </code></pre>
  
  <p>I don't know if it is affecting this problem, but I am using ZSH.</p>
  
  <p>I tried to install stevedore through pip (sudo pip install stevedore), but I get the following error:</p>
  
  <pre><code>sudo sh setuptools-0.6c11-py2.7.egg
  Processing setuptools-0.6c11-py2.7.egg
  removing '/Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg' (and everything under it)
  Copying setuptools-0.6c11-py2.7.egg to /Library/Python/2.7/site-packages
  setuptools 0.6c11 is already the active version in easy-install.pth
  Installing easy_install script to /usr/local/bin
  Installing easy_install-2.7 script to /usr/local/bin
  
  Installed /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg
  Processing dependencies for setuptools==0.6c11
  Finished processing dependencies for setuptools==0.6c11
  TXSLs-MacBook-Pro% sudo pip install stevedore --upgrade
  Requirement already up-to-date: stevedore in /Library/Python/2.7/site-packages
  Downloading/unpacking distribute (from stevedore)
    Running setup.py egg_info for package distribute
  
  Installing collected packages: distribute
    Running setup.py install for distribute
      Before install bootstrap.
      Scanning installed packages
      Setuptools installation detected at /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg
      Egg installation
      Patching...
      Renaming /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg into /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1348764450.4
      Patched done.
      Relaunching...
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
      NameError: name 'install' is not defined
      Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-FAPgYH-record/install-record.txt --single-version-externally-managed:
      Before install bootstrap.
  
  Scanning installed packages
  
  Setuptools installation detected at /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg
  
  Egg installation
  
  Patching...
  
  Renaming /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg into /Library/Python/2.7/site-packages/setuptools-0.6c11-py2.7.egg.OLD.1348764450.4
  
  Patched done.
  
  Relaunching...
  
  Traceback (most recent call last):
  
    File "&lt;string&gt;", line 1, in &lt;module&gt;
  
  NameError: name 'install' is not defined
  
  ----------------------------------------
  Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build/distribute/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-FAPgYH-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/distribute
  Storing complete log in /Users/txsl/Library/Logs/pip.log
  </code></pre>
  
  <p>I manually installed setuptools as I couldn't install anything through pip without it.</p>
  
  <p>What has gone wrong here and how can i fix it? The internet doesn't seem to have many cases of  the error with stevedore. I feel rather stuck at the moment!</p>
  
  <p>Many thanks!</p>