title: Python script worked in Spyder console but not in Python IDLE
body: <p>I have a .py script that works when run in Spyder Console.</p>
  <p>However when attempting to run in Python IDLE, there is an error message:</p>
  <pre><code>Traceback (most recent call last):
      File &quot;C:\Users\user\.spyder-py3\autobackupfile.py&quot;, line 11, in &lt;module&gt;
          from selenium import webdriver
  ModuleNotFoundError: No module named 'selenium'
  </code></pre>
  <p>I am not sure why is there a difference in behaviour.
  I am on corporate laptop which requires admin password, therefore I have downloaded all the libraries via cmd using the solution provided <a href="https://stackoverflow.com/questions/51490700/install-python-modules-on-windows-without-admin-rights">here</a></p>
  <pre><code>python.exe -m pip install selenium
  </code></pre>
  <p>When tested to install selenium via cmd again, it was installed properly.</p>