Python, tkinter, sql server

Good day,

I want to create user forms with tkinter and then save input to and retrieve data from an sql server database. I have tried everything to make “pip install pyodbc” work as well as “import pyodbc”. I can’t seem to get past these steps to actually connect to the database. Errors are:

SyntaxError: invalid syntax (for pip install)

and for import pyodbc:

Traceback (most recent call last):
File “<pyshell#4>”, line 1, in
import pyodbc
ModuleNotFoundError: No module named ‘pyodbc’

I have installed an ODBC driver, installed different versions of Python, please help me or do you recommend a completely different rout? Maybe working through VS?

Thank you, help will be much appreciated.
Vivien

1 Like

Thank you, often as soon as you ask a question, you figure it out yourself. Figured this one out. Thank you.

2 Likes