title: Unable to run pytest on Mac due to permission issues
body: <p>On Mac OS 10.14 (Mojave) I used:   </p>
  
  <pre><code>pip install -U pytest
  </code></pre>
  
  <p>to install pytest. I got a permission denied error trying to install the packages to <code>/Users/nagen/Library/Python/2.7</code></p>
  
  <p>I tried</p>
  
  <pre><code>sudo pip install -U pytest
  </code></pre>
  
  <p>This time it installed successfully
  But, despite adding the full path, the terminal doesn't recognize pytest.</p>
  
  <p>If I try to run <code>/Users/nagen/Library/Python/2.7/bin/pytest</code> - I get permission error.
  In addtion, <code>sudo /Users/nagen/Library/Python/2.7/bin/pytest</code> works, but it prompts for a password, so I can not use it in automation scripts.</p>
  
  <p>Tried installing python3 and then running pip3 install...same issue.</p>