我安裝的是64位的Python,也是在官網上安裝了64位的pymssql,但是在import時還是會報錯,運行后錯誤資訊如下,求指導
:D:\workspace\javaworkspace\SpiderStuding\src\Douban\DB.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
import pymssql
Traceback (most recent call last):
File "src\pymssql.pyx", line 636, in pymssql.connect
File "src\_mssql.pyx", line 1957, in _mssql.connect
File "src\_mssql.pyx", line 676, in _mssql.MSSQLConnection.__init__
File "src\_mssql.pyx", line 1683, in _mssql.maybe_raise_MSSQLDatabaseException
_mssql.MSSQLDatabaseException: (20009, b'DB-Lib error message 20009, severity 9:\nUnable to connect: Adaptive Server is unavailable or does not exist (LENOVEN-PC\\SQLEXPRESS)\n')
During handling of the above exception, another exception occurred:
uj5u.com熱心網友回復:
聽說pymssql最高只支持到python3.7.可能是不支持造成的轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/93768.html
上一篇:Mac上Spyder無法打開
