1. 程式人生 > >FutureWarning: Conversion of the second ... np.float64 == np.dtype(float).type`.

FutureWarning: Conversion of the second ... np.float64 == np.dtype(float).type`.

執行tensorflow測試程式時,出現:FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
  from ._conv import register_converters as _register_converters

環境:

  • MacOS 10.13.2
  • Python 3.6.4

國內網上試過許多方法都不行,直到跳牆google裡看到

pip install h5py==2.8.0rc1

完美解決

--------------------- 本文來自 十里傾誠 的CSDN 部落格 ,全文地址請點選:https://blog.csdn.net/langjijianghu_123/article/details/79933966?utm_source=copy

注: 親測linux 平臺下也可完美解決