解决Python中FutureWarning: `np.complex128 == np.dtype(complex).type`.问题
今天使用python进行数据科学可视化,运行文件时出现:
Warning (from warnings module):
File "C:\Users\zouqican\AppData\Local\Programs\Python\Python36\lib\site-packages\tvtk\array_handler.py", line 268
assert not numpy.issubdtype(z.dtype, complex), \
FutureWarning: Conversion of the second argument of issubdtype from `complex` to `np.complexfloating` is deprecated. In future, it will be treated as `np.complex128 == np.dtype(complex).type`.
头疼,又遇到bug了。。。
查看了一些文章,看了,然后发现是有些模块没有更新导致的
因此我通过更新:在终端输入pip install h5py==2.80rc1 更新h5py模块。
于是问题就决解了。