Image 关于数据类型的略读警告
为什么这个代码段会给我这个警告,以及如何修复它Image 关于数据类型的略读警告,image,ipython,scikit-image,Image,Ipython,Scikit Image,为什么这个代码段会给我这个警告,以及如何修复它 %matplotlib inline from skimage import io io.imshow(io.imread('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png')) 警告: /home/anaconda3/lib/python3.6/site-packages/skimage/io/_plugins/matplot
%matplotlib inline
from skimage import io
io.imshow(io.imread('https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_120x44dp.png'))
警告:
/home/anaconda3/lib/python3.6/site-packages/skimage/io/_plugins/matplotlib_plugin.py:51: 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`.
out_of_range_float = (np.issubdtype(image.dtype, np.float) and
/home/anaconda3/lib/python3.6/site-packages/matplotlib/axes/_base.py:1400: MatplotlibDeprecationWarning: The 'box-forced' keyword argument is deprecated since 2.2.
" since 2.2.", cbook.mplDeprecation)
我有略读版0.13.1。谢谢 这些警告是由于scikit image 0.13.1之后发布的NumPy和Matplotlib版本中的不推荐使用而引起的。如评论中所述,升级到0.14可以解决问题。您的IPython版本是什么?无法在IPython 6.4.0中复制。@AndriyMakukha怪异。我也有IPython 6.4.0。实际上,在我将skimage升级到0.14.0后,警告消失了。