簡體   English   中英

Python 棄用警告

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM