Pyodbc - “Data source name not found, and no default driver specified”

后端 未结 5 1991
闹比i
闹比i 2020-11-27 15:39

I have trouble getting pyodbc work. I have unixodbc , unixodbc-dev, odbc-postgresql, pyodbc packages install

5条回答
  •  眼角桃花
    2020-11-27 16:15

    I believe the answer to your problem is that in your ~/.odbc.ini file you are saying to use driver PostgreSQL - but you have not defined that driver in your /etc/odbcinst.ini file. Try changing PostgreSQL to PostgreSQL ANSI or PostgreSQL Unicode (both of which are defined in /etc/odbcinst.ini).

提交回复
热议问题