title: Why do python modules work in shell but not in the script?
body: <p>I am trying to make two programs. I want one to print the current weather of my city of residence and I want the other one to take data from an online account and return it. For those scripts I import the yweather module and the requests module. When I import them in the shell there are no problems but when I run the script it says "ImportError: No module named yweather". What am I doing wrong?</p>
  
  <p>Shell:</p>
  
  <pre><code>&gt;&gt;&gt; import requests
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Script:</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Users/tim/Desktop/login.py", line 1, in &lt;module&gt;
      import requests
  ImportError: No module named requests 
  </code></pre>
  
  <p>This also happens for the yweather module</p>
  
  <p>Thank you</p>