首页 > 解决方案 > Python 弃用警告

问题描述

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 的开发。

标签: pythonpython-3.x

解决方案


看起来您正在使用旧版本的 python 包。请使用以下命令更新这些包cmd

pip install --upgrade pymssql
pip install --upgrade pandas
pip install --upgrade numpy

推荐阅读