I have a .py script that works when run in Spyder Console.
However when attempting to run in Python IDLE, there is an error message:
Traceback (most recent call last):
File "C:\Users\user\.spyder-py3\autobackupfile.py", line 11, in <module>
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
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 here
python.exe -m pip install selenium
When tested to install selenium via cmd again, it was installed properly.