title: python only works with sudo
body: <p>My python 2.7 script works on my Ubuntu system if I call it using </p>
  
  <pre><code>sudo python [filename].py
  </code></pre>
  
  <p>or from a bash script using </p>
  
  <pre><code>sudo ./[bashscriptname].sh
  </code></pre>
  
  <p>But if I call it from Pycharm I get oauth errors, and from the command prompt </p>
  
  <pre><code>python [filename].py 
  </code></pre>
  
  <p>throws an error on the 'import pandas' line:</p>
  
  <pre><code>ImportError: Missing required dependencies ['numpy', 'pytz']
  </code></pre>
  
  <p>I've tried </p>
  
  <ul>
  <li>pip uninstall then pip install for pandas, numpy, and scipy  as noted in <a href="https://stackoverflow.com/questions/41859939/python-pandas-missing-required-dependencies-numpy-1">Python Pandas - Missing required dependencies [&#39;numpy&#39;] 1</a>
  
  <ul>
  <li>the above using flags --upgrade and --user to try to get the packages to apply to my user account rather than root.</li>
  </ul></li>
  <li>deleting all files with .pyc in the directory as in <a href="https://stackoverflow.com/questions/42973666/importerror-missing-required-dependencies-numpy">ImportError: Missing required dependencies [&#39;numpy&#39;]</a></li>
  <li>Adding PATH="${PATH}:/path/to/user/python/packages and PYTHONPATH="${PYTHONPATH}:/path/to/user/python/packages" in my .bashrc file</li>
  </ul>
  
  <p>But nothing seems to work.  </p>
  
  <pre><code>pip list
  </code></pre>
  
  <p>Shows all the necessary pandas, numpy, pytz, and oauth packages.</p>
  
  <p>I've a noob who has spent nearly a day on this--help would be very greatly appreciated!!</p>