module ‘numpy‘ has no attribute ‘object‘.
·
AttributeError: module ‘numpy’ has no attribute ‘object’.np.object
was a deprecated alias for the builtin object
. To avoid this error in existing code, use object
by itself. Doing this will not modify any behavior and is safe.
The aliases was originally 【deprecated】 in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
模块’numpy’没有属性’object’。
“np.object ‘是内置’ Object ‘的已弃用别名。为了避免在现有代码中出现此错误,请单独使用’ object '。这样做不会改变任何行为,而且是安全的。
这些别名最初在NumPy 1.20中已弃用;欲了解更多细节和指导,请参阅原始发布说明:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
更多推荐
所有评论(0)