Connect docker python to SQL server with pyodbc

后端 未结 7 2039
迷失自我
迷失自我 2020-11-28 08:50

I\'m trying to connect a pyodbc python script running in a docker container to login to a MSSQL database I have tried all sorts of docker files, but not been able to make th

7条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 09:15

    I fixed this problem by using pypyodbc instead of pyodbc.

    pip install pypyodbc==1.3.5
    

    https://pypi.org/project/pypyodbc/

    Found the hint here: https://github.com/Azure/azure-functions-python-worker/issues/249

提交回复
热议问题