异常FutureWarning: In the future `np.object` will be defined as the corresponding NumPy scalar.

发布时间 2023-08-03 10:14:02作者: 红酒人生

AttributeError: module 'numpy' has no attribute 'object'.

原因:numpy版本问题,卸载重新安装对应的版本

方法

pip uninstall numpy==1.19.2(根据自己的版本需要,安装对应的版本)

 

操作如下: