Forums

ModuleNotFoundError: No module named 'pyodbc'

I've tried pip install pyodbc only to be told the requirement is already satisifed. I even ran pip uninstall pyodbc and then pip install pyodbc and it's still giving me a ModuleNotFoundError. I'm not sure what to try next.

Install the module into the version of Python/virtualenv that you are using to run your code: https://help.pythonanywhere.com/pages/InstallingNewModules/

I am now running into the following error:

pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'FreeTDS' : file not found (0) (SQLDriverConnect)")

Even with following the documentation shown here:

https://help.pythonanywhere.com/pages/MSSQLServer/

We're already discussing this over email, so we'll continue there.