RuntimeError:_ARRAY_API不是PyCObject对象& RuntimeError:_UFUNC_API不是PyCObject对象

时间:2015-09-01 19:32:21

标签: python-3.x matplotlib cython python-3.4 joblib

我在python中编写了这样的代码:

from selective_search import *

if __name__ == '__main__':
        img = skimage.io.imread('cat.jpg')
        regions = selective_search(img)
        for v, (i0, j0, i1, j1) in regions:
                regions = selective_search(img, \
                        color_spaces = ['rgb', 'hsv'], \
                        ks = [50, 150, 300], \
                        feature_masks = [0, 0, 1, 1])

当我运行代码时,我收到了这些错误:

RuntimeError:_ARRAY_API不是PyCObject对象
RuntimeError:_UFUNC_API不是PyCObject对象

我正在导入selective_search,您可以在此链接上看到:https://github.com/belltailjp/selective_search_py/blob/master/selective_search.py

我已经使用必需或更高版本安装了以下所有依赖项:

Cython==0.22
joblib==0.8.4
matplotlib==1.4.3
numpy==1.9.2
Pillow==2.8.1
PySide==1.2.2
PyYAML==3.11
scikit-image==0.11.3
scikit-learn==0.16.0
scipy==0.15.1
pytest==2.7.0

我的默认python版本是3.4。

我该如何解决问题?

0 个答案:

没有答案