软件包安装,用于salientdetect崩溃

时间:2019-07-01 14:58:50

标签: python-3.x cython

pip install salientdetect。,https://pypi.org/project/salientdetect/1.0.0/崩溃,显示错误

Error compiling Cython file:
    ------------------------------------------------------------
    ...
        calc_region_score(img, regions, region_centroid, region_histgram, color_dist_mat, scores)
        ret = {}
        cdef vector[Coordinate*].iterator cvecit
        cdef Coordinate* coor
        cdef double score
        for reg_id, score in scores.items():
                                  ^
    ------------------------------------------------------------
salientdetect\detector.pyx:266:31: Object of type 'unordered_map[int,double]' has no attribute 'items'

detector.pyx文件可以在这里找到:

https://github.com/shunsukeaihara/salientdetect/blob/master/salientdetect/detector.pyx

python 3.6版

0 个答案:

没有答案