title: Virtualenvwrapper.sh lssitepackages command not working
body: <p>I'm trying to get to grips with Python virtual environments and have followed a few excellent tutorials such as <a href="http://simononsoftware.com/virtualenv-tutorial/" rel="nofollow noreferrer">simononsoftware</a> and <a href="http://iamzed.com/2009/05/07/a-primer-on-virtualenv/" rel="nofollow noreferrer">IAmZed</a> which were recommended in an answer to another SO question <a href="https://stackoverflow.com/questions/5844869/comprehensive-beginners-virtualenv-tutorial">here</a></p>
  
  <p>However I am having some problems with virtualenvwrapper. I am reading the docs <a href="http://virtualenvwrapper.readthedocs.org/en/latest/" rel="nofollow noreferrer">here</a></p>
  
  <p>I believe I have installed virtualenvwrapper correctly. When I type </p>
  
  <pre><code>localhost:workspace brendan$ which virtualenvwrapper.sh 
  </code></pre>
  
  <p>I receive the below. <strong>Note</strong>: This is outside my virtual environment. </p>
  
  <pre><code>/usr/local/bin/virtualenvwrapper.sh
  </code></pre>
  
  <p>However when I enter my virtual environment via</p>
  
  <pre><code>localhost:workspace brendan$ source virt_env/Credibility/bin/activate
  </code></pre>
  
  <p>and type </p>
  
  <pre><code>(Credibility)localhost:workspace brendan$ lssitepackages
  </code></pre>
  
  <p>I receive</p>
  
  <pre><code>-bash: lssitepackages: command not found
  </code></pre>
  
  <p>I have also installed virtualenvwrapper inside my Credibility virtualenv but the command still does not work.  </p>
  
  <p>This is my <code>yolk -l</code> output from within the Credibility Virtualenv</p>
  
  <pre><code>(Credibility)localhost:workspace brendan$ yolk -l
  Django          - 1.5.1        - active 
  Python          - 2.7.1        - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload)
  SQLAlchemy      - 0.8.2        - active 
  distribute      - 0.7.3        - active 
  nose            - 1.3.0        - active 
  pip             - 1.4          - active 
  setuptools      - 0.9.7        - active 
  stevedore       - 0.10         - active 
  virtualenv-clone - 0.2.4        - active 
  virtualenv      - 1.10.1       - active 
  virtualenvwrapper - 4.1.1        - active 
  wsgiref         - 0.1.2        - active development (/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7)
  yolk            - 0.4.3        - active 
  (Credibility)localhost:workspace brendan$ 
  </code></pre>
  
  <p>My suspicion where I might be going wrong. In the <a href="http://virtualenvwrapper.readthedocs.org/en/latest/" rel="nofollow noreferrer">docs</a> it says to </p>
  
  <blockquote>
    <p>First, some initialization steps. Most of this only needs to be done
    one time. <strong>You will want to add the command to source
    /usr/local/bin/virtualenvwrapper.sh to your shell startup file,
    changing the path to virtualenvwrapper.sh depending on where it was
    installed by pip.</strong></p>
  </blockquote>
  
  <p>I was not really sure how to do this so I followed the instructions in another SO answer <a href="https://stackoverflow.com/questions/15101559/terminal-where-is-the-shell-start-up-file">here</a> </p>
  
  <pre><code>localhost:documents brendan$ cd workspace/
  localhost:workspace brendan$ pwd
  /Users/brendan/documents/workspace
  localhost:workspace brendan$ cat &gt;&gt; ~/.profile
  export WORKON_HOME=$HOME/.virtualenvs
  export PROJECT_HOME=$HOME/Users/brendan/documents/workspace
  source /usr/local/bin/virtualenvwrapper.sh
  localhost:workspace brendan$ source ~/.bash_profile
  localhost:workspace brendan$ 
  </code></pre>
  
  <p>I thought this would have fixed it, as you can see I reloaded my Terminal window, I also restarted it. However unlike installing a package, this gave me no feedback as I completed each of the steps and I think it might be causing the problem. </p>
  
  <p>Can anyone see an issue here or is there another problem I am not seeing? </p>
  
  <p>Thanks for the help</p>
  
  <p>Setup: Mac OSX 10.7.5 </p>