[英]Python Deprecation warning
DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working.
這些是我的導入語句。
import pandas as pd
import numpy as np
import os
import pymssql
os.getcwd
os.chdir('D:\Sushil\Output')
我們如何解決這個問題,因為我正在運行 spyder IDE 以進行連接到 sql server 的開發。
看起來您正在使用舊版本的 python 包。 請在cmd
使用以下命令更新這些包。
pip install --upgrade pymssql
pip install --upgrade pandas
pip install --upgrade numpy
是的,警告消息是關於 pymssql。 我已經升級到較新的版本。 這是工作。 現在沒有更多的警告信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.