解決h5py的FutureWarning問題


 

h5py/__init__.py:36: 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

 

原因:

h5py 和 numpy 版本沖突,h5py 官方已修復合並到 master 分支,但是還沒發新版,在發版之前可以用降級 numpy 的方法跳過這個問題。

降級命令如下:

$ pip install numpy==1.13.0

 

參考:

https://wuwb.me/2018/03/h5py-futurewarning-problem-fix.html

https://stackoverflow.com/questions/48340392/futurewarning-conversion-of-the-second-argument-of-issubdtype-from-float-to

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM