Mac 下怎么安转 pymssql ?


我已经安装了freetds tsql 已经能连接上sql server了?就是pymssql安装后报错


 Traceback (most recent call last):
File "/Users/zenn/code/Tz/test.py", line 10, in <module>
File "pymssql.pyx", line 552, in pymssql.connect (pymssql.c:7724)
raise InterfaceError(e[0])
pymssql.InterfaceError: Connection to the database failed for an unknown reason.

已经解决了: 是端口形式写错了 host='172.0.0.1:3001' 不能写成 host='172.0.0.1,3001'

python pip sqlserver pymssql

45363w 11 years, 10 months ago

Your Answer