首页 > 解决方案 > 在 python3 'TypeError: 描述符 '__subclasses__' of 'type' object 中导入 pandas 时出错,需要一个参数'

问题描述

Python 3.5.2 中的命令import pandas as pd给出错误:

'TypeError: descriptor '__subclasses__' of 'type' object needs an argument'

这仅在 Python3 和 Python 2 导入 pandas 时才会发生。我搜索了错误代码并应用了其他人提供的建议,但这对我不起作用。

标签: pythonpython-3.xpandasimporterror

解决方案


将您的 python 更新到 3.5.3+ 版本。它从 0.25.x pandas 系列开始。

熊猫文档

正式 Python 3.5.3 及更高版本、3.6 和 3.7。


推荐阅读