title: on MAC OS X, py.test not recognized as a command
body: <p>On MAC OS X 10.10; I installed pytest 2.6.4; however in Terminal If I write py.test or even py.test --version; I get the error:</p>
  
  <pre><code>-bash: py.test command not found
  </code></pre>
  
  <p>(a) Am I missing anything? What do I do to make the pytest tool recognizable.
  I searched alot; but couldn't find any info except <a href="http://teckla.idyll.org/~t/transfer/py.test.html" rel="nofollow">http://teckla.idyll.org/~t/transfer/py.test.html</a></p>
  
  <p>I checked in the PyCharm preferences, I don't see py.test interpreter listed there. However, pip freeze displays pytest 2.6.4 installed.</p>
  
  <p>(b) Is PYTHONPATH required to be set on MAC? Although I've seen setting it is not required on Windows.</p>
  
  <p>Appreciate any pointers to help me resolve this.</p>
  
  <hr>
  
  <p>Update: Contents of my bash_profile:</p>
  
  <pre><code>echo export PATH="HOME/.rbenv/bin:$PATH"
  eval "$(rbenv init -)"
  
  PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"
  PATH="/Users/admin/Library/Python/2.7/lib/python/site-packages:$PATH"
  PATH="/System/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"
  export PATH
  </code></pre>