python - 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 的开发。
解决方案
看起来您正在使用旧版本的 python 包。请使用以下命令更新这些包cmd
。
pip install --upgrade pymssql
pip install --upgrade pandas
pip install --upgrade numpy
推荐阅读
- google-cloud-platform - 如何在我项目的所有 Big Query 表中运行 Cloud DLP(数据丢失防护)?
- powershell - 尝试使用 powershell 更新 xml 文档但在更新根节点时遇到问题
- angular - 离子角度中的 Woocommerce-api CORS 错误
- mysql - Sequelize paranoid true 会影响查询性能吗?
- python - 定义一个函数并将其命名为“numbers_range”,它接收任意数字列表并返回数字的范围
- ffmpeg - ffmpeg 从流中附加文件
- javascript - 我的 javascript 文件功能不起作用
- python - 找出 pandas df 中滚动函数的索引
- api - JWT 似乎不是 REST API 的安全解决方案
- c# - Quickbooks 桌面集成退出而不在不同的计算机上启动