How to fix 'C extension not loaded, training will be slow. Install a C compiler and reinstall gensim for fast training.'

前端 未结 4 425
庸人自扰
庸人自扰 2021-01-18 15:26

I\'m using the library node2vec, which is based on gensim word2vec model to encode nodes in an embedding space, but when i want to fit the word2vec object I get this warning

4条回答
  •  离开以前
    2021-01-18 16:22

    gensim relies on extension modules that need to be compiled. Both defaults and the conda-forge channel provide prebuilt versions that will work out of the box.

    conda install gensim
    

    or

    conda install -c conda-forge gensim
    

    are probably the easiest way to get gensim to work.

提交回复
热议问题