Error "virtualenv : command not found" but install location is in PYTHONPATH
<p>This has been driving me crazy for the past 2 days.
I installed virtualenv on my Macbook using <code>pip install virtualenv</code>.
But when I try to create a new virtualenv using <code>virtualenv venv</code>, I get the error saying "virtualenv : command not found".</p>

<p>I used <code>pip show virtualenv</code> and the location of the installation is "Location: /usr/local/lib/python2.7/site-packages" but I can't figure out where the executable is. I tried dozens other similar looking posts but those solutions do not work for me.</p>

<p>Any ideas what might be going wrong here?</p>

<p>The only workable approach I could figure out (with help from @Gator_Python was to do <code>python -m virtualenv venv</code>. This creates the virtual environment and works as expected.</p>

<p>I have custom python installed and maybe that's why the default approach doesn't work for me.</p>

python python-2.7 pip