求大神帮忙:python pymssql模块安装成功,import pymssql 出错

pip list
pymssql 2.1.4

windows系统 64位,python 3.7.4版本
import pymssql
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

这个信息看起来是警告吧,输出这个信息程序退出了吗?

没有退出,等待程序运行

弃用警告:从collections中导入ABCs已被弃用,并在python3.8中将停止工作,可使用collections.abc代替它进行使用

 

# from collections import Iterable

from collections.abc import Iterable

print(isinstance('abc', Iterable))

 

把collections 替换为 collections.abc 就不会有警告了~

 

你得进入相应的脚本里修改这个import