установка пакета для аварийного сбоя - PullRequest
0 голосов
/ 01 июля 2019

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'

файл dete.pyx можно найти здесь:

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

python версия 3.6

...