title: mkvirtualenv: command not found
body: <p>I'm new to Python virtual environments, so after reading <a href="http://simononsoftware.com/virtualenv-tutorial-part-2/" rel="noreferrer">this tutorial</a> I tried to create my first environment using <code>virtualenvwrapper</code>. My python3 installation is at the bare bones now:</p>
  
  <pre><code>$ pip3 list
  argparse (1.2.1)
  pip (1.5.6)
  setuptools (2.1)
  stevedore (0.15)
  virtualenv (1.11.6)
  virtualenv-clone (0.2.5)
  virtualenvwrapper (4.3.1)
  </code></pre>
  
  <p>As suggested by the tutorial, I added the following lines to my <em>.bashrc</em> file:</p>
  
  <pre><code>export WORKON_HOME=$HOME/.virtualenvs
  source /Library/Frameworks/Python.framework/Versions/3.4/bin/virtualenvwrapper_lazy.sh
  </code></pre>
  
  <p>which results in the following message when I open a new Terminal:</p>
  
  <pre><code>Last login: Wed Sep 10 22:33:17 on ttys006
  -bash: _VIRTUALENVWRAPPER_API: unbound variable
  -bash: VIRTUALENVWRAPPER_SCRIPT: unbound variable
  -bash: VIRTUALENVWRAPPER_SCRIPT: unbound variable
  -bash: _VIRTUALENVWRAPPER_API: unbound variable
  -bash: _VIRTUALENVWRAPPER_API: unbound variable
  complete: usage: complete [-abcdefgjksuv] [-pr] [-o option] [-A action] [-G globpat] [-W wordlist] [-P prefix] [-S suffix] [-X filterpat] [-F function] [-C command] [name ...]
  </code></pre>
  
  <p>I don't understand what the problem is, but clearly the <code>source /Library/Frameworks/Python.framework/Versions/3.4/bin/virtualenvwrapper_lazy.sh</code> line fails because then I can't even find the <code>mkvirtualenv</code> command:</p>
  
  <pre><code>$ mkvirtualenv test1 -p /usr/bin/python3.3
  -bash: mkvirtualenv: command not found
  </code></pre>
  
  <p>I found <a href="https://stackoverflow.com/questions/18684231/python-setup-command-not-found">this post</a> and <a href="https://stackoverflow.com/questions/13855463/bash-mkvirtualenv-command-not-found">this one</a>, with similar problems, but none of them gave me a solution.</p>