简体   繁体   English

在python3中导入pandas时出错'TypeError:'type'对象的描述符'__subclasses__'需要一个参数'

[英]Error with importing pandas in python3 'TypeError: descriptor '__subclasses__' of 'type' object needs an argument'

the command import pandas as pd in Python 3.5.2 gives an error : Python 3.5.2 中的命令import pandas as pd给出了一个错误:

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

This happens only with Python3 and Python 2 imports pandas just fine.这只发生在 Python3 和 Python 2 导入熊猫就好了。 I searched the error code and applied the suggestions others provided, which didn't work for me.我搜索了错误代码并应用了其他人提供的建议,但这对我不起作用。

Update your python to 3.5.3+ version.将您的 python 更新到 3.5.3+ 版本。 It starts with the 0.25.x pandas series.它从 0.25.x pandas 系列开始。

From the pandas documentation :熊猫文档

Officially Python 3.5.3 and above, 3.6, and 3.7.官方 Python 3.5.3 及更高版本、3.6 和 3.7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TypeError: 'type' 对象的描述符 '__subclasses__' 在尝试导入 rasa_core 时需要一个参数 - TypeError: descriptor '__subclasses__' of 'type' object needs an argument while trying to import rasa_core TypeError:“文件”对象的描述符“ readlines”需要参数 - TypeError: descriptor 'readlines' of 'file' object needs argument TypeError:“文件”对象的描述符“ readlines”需要一个参数 - TypeError: descriptor 'readlines' of 'file' object needs an argument Python:__subclasses__ order - Python: __subclasses__ order Python __subclasses __()没有列出子类 - Python __subclasses__() not listing subclasses Python:可以在内置类型上调用 __subclasses__(),而不是在自定义对象上 - Python: can call __subclasses__() on build in types, not on custom object 无法在python中模拟__subclasses__ - Unable to mock __subclasses__ in python 错误:TypeError:ColumnClause 类型的对象不是 JSON 可序列化的 Python3 - ERROR: TypeError: Object of type ColumnClause is not JSON serializable Python3 'super'对象的描述符'__init__'需要参数 - descriptor '__init__' of 'super' object needs argument TypeError: int() 参数必须是字符串、类似字节的对象或数字,而不是 python3 中的“NoneType”错误 - TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' error in python3
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM