码迷,mamicode.com
首页 > 其他好文 > 详细

解决h5py的FutureWarning问题

时间:2018-04-20 20:39:02      阅读:1662      评论:0      收藏:0      [点我收藏+]

标签:新版   version   init   __init__   AC   ast   com   install   stack   

 

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

 

解决h5py的FutureWarning问题

标签:新版   version   init   __init__   AC   ast   com   install   stack   

原文地址:https://www.cnblogs.com/bymo/p/8893178.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!