I am trying to import pyodbc module on a windows computer. It works in the terminal, but not the IDLE. The error message in IDLE is:
python and press enter)import modulename)modulename.__file__import sys and typing sys.executable to get the paths where it looks for modules to importThis method worked for me.