Scikit-learn:ValueError:无法将对象转换为 float64

AS_*_*hon 5 python python-2.7 scikit-image

我遇到了与 scikit-image 相关的非常奇怪的问题。即,我无法运行“启动示例”:

from skimage import data, io, filter

image = data.coins() # or any NumPy array!
edges = filter.sobel(image)
io.imshow(edges)
Run Code Online (Sandbox Code Playgroud)

之后 Python 2.7 报告错误:

ValueError: can not convert object to float64.
Run Code Online (Sandbox Code Playgroud)

此外,我无法打开任何“tif、png”图像,因为 Python 报告了类似的错误。有趣的是,这个问题突然出现,因为一开始一切正常。我想这是由于安装了 pymorph 模块,这可能影响了 numpy。但是,您有任何想法如何解决这个问题吗?