title: virtualenv command is not found in Mac OS
body: <p>I installed <code>virtualenv</code> using the command <code>sudo pip install virtualenv</code> and the installation is successful. Later, when I type <code>virtualenv</code>, I get the error message as following,  <code>-bash: virtualenv: command not found</code></p>
  
  <p>The <code>virtualenv</code> is installed in <code>/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages</code>. I see the similar questions in the forum with no definitive answers. </p>
  
  <p>Python is in the location <code>/usr/local/bin/python</code> and I have version <code>2.7.9</code>. I get the following using <code>ls -l</code> command, </p>
  
  <p><a href="https://i.stack.imgur.com/CSkKv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CSkKv.png" alt="enter image description here"></a>
  Why do I see the <code>virtualenv</code> is not found and how to solve the issue ? </p>
  
  <h2>UPDATE:</h2>
  
  <p>I use the command </p>
  
  <p><code>ln -s /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py /usr/local/bin/virtualenv.py</code> to put the <code>virtualenv.py</code> </p>
  
  <p>inside the <code>/usr/local/bin</code> folder. Previously, I only did the same for the <code>virtualenv</code> file. Now, when I put the command <code>virtualenv</code> in the terminal, I get </p>
  
  <p><code>-bash: /usr/local/bin/virtualenv: Permission denied</code>. </p>
  
  <p>I later use </p>
  
  <p><code>sudo ln -s /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv.py /usr/local/bin/virtualenv.py</code> </p>
  
  <p>and the say message keep showing. <code>which virtualenv</code> still returns nothing. </p>