title: keep getting python ModuleNotFoundError: No module named
body: <p>I am working on a raspberry pi python project and every time I import a package I get the same error <code>ModuleNotFoundError: No module named ''</code>. for example I am trying to add the ambient_api package</p>
  
  <p>I followed the steps in their set up:</p>
  
  <pre><code>pip install ambient_api
  </code></pre>
  
  <p>Added the imports at the top of my file: </p>
  
  <pre><code>from ambient_api.ambientapi import AmbientAPI
  api = AmbientAPI()
  </code></pre>
  
  <p>but I am getting the error: </p>
  
  <pre><code>ModuleNotFoundError: No module named 'ambient_api'
  </code></pre>
  
  <p>This is happening with all the imports I am trying to add and I cant figure out what I am missing. </p>
  
  <p>when I was looking on google I came across <code>__init__.py</code> might be a solution but I am not sure how this works? </p>
  
  <p>edit: </p>
  
  <pre><code>here is what was output when I installed:
  Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
  Requirement already satisfied: ambient_api in /home/pi/.local/lib/python2.7/site-packages (1.5.2)
  Requirement already satisfied: requests in /usr/lib/python2.7/dist-packages (from ambient_api) (2.21.0)
  Requirement already satisfied: urllib3 in /usr/lib/python2.7/dist-packages (from ambient_api) (1.24.1)
  </code></pre>
  
  <p>version in my terminal:
  pi@raspberrypi:~/Raspberry-Pi-Greenhouse $ python --version
  Python 2.7.16</p>
  
  <p>but it looks like the version in the shell in the ide when I run the program is saying:
  Python 3.7.3 (/usr/bin/python3)</p>