Python Deprecation warning

Viewed 2153
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.

These are my import statements.

import pandas as pd

import numpy as np

import os

import pymssql

os.getcwd

os.chdir('D:\Sushil\Output')

How can we fix this, since I am running spyder IDE for development connecting to sql server.

2 Answers

Looks like you are using older versions of python packages. Please update these packages using the following commands in cmd.

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

Yes the warning message was regards pymssql. I have upgraded to the newer version. It is working. No more warning message now.

Related