pycharm:FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future

错误描述:

FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'._np_quint8 = np.dtype([("quint8", np.uint8, 1)])
 

解决方法:

错误链接的地方点进去,按照提示修改

例如:

_np_qint32 = np.dtype([("qint32", np.int32, 1)])

改成:

_np_qint32 = np.dtype([("qint32", np.int32, (1,))])

保存后重新运行

发布了81 篇原创文章 · 获赞 6 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_41499217/article/details/100126318
今日推荐