pyannote / pyannote-metrics

A toolkit for reproducible evaluation, diagnostic, and error analysis of speaker diarization systems
http://pyannote.github.io/pyannote-metrics
MIT License
184 stars 32 forks source link

error in pip install on windows #6

Closed chanansh closed 7 years ago

chanansh commented 7 years ago
    ]
banyan\_int_imp\_build_tree_imp.cpp(181): note: see reference to class template instantiation '_KnownMetadataBuilder<Alg_Tag,Key_Type,_NullMetadataTag,std::less<Key_Type>>' being compiled
        with
        [
            Alg_Tag=_RBTreeTag,
            Key_Type=UnicodeString
        ]
banyan\_int_imp/_set_tree_imp.hpp(124): error C3861: 'back_inserter': identifier not found
banyan\_int_imp/_set_tree_imp.hpp(131): error C3861: 'back_inserter': identifier not found
banyan\_int_imp/_set_tree_imp.hpp(138): error C3861: 'back_inserter': identifier not found
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
hbredin commented 7 years ago

Unfortunately I never tried installing pyannote.metrics on Windows, nor have a Windows machine to test it. May I suggest you try installing in a conda environment?

conda create -n pyannote-metrics-py35 python=3.5 anaconda
source activate pyannote-metrics-py35
conda install gcc
pip install pyannote-metrics
chanansh commented 7 years ago

fix: add #include to _build_tree_imp.cpp see https://github.com/cpcloud/banyan/issues/3 based on: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-reviews/e3qaU4ph73g

hbredin commented 7 years ago

I'd be happy to merge a pull request in https://github.com/pyannote/pyannote-banyan

hbredin commented 7 years ago

Latest release of https://github.com/pyannote/pyannote-core (v1.0) solves this problem: banyan is no longer a dependency.