Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

C:\Users\lenovo\Anaconda3\lib\site-packages\gensim\models\base_any2vec.py:743: UserWarning: C extension not loaded, training will be slow. Install a C compiler and reinstall gensim for fast training.

Can any one help me to fix this issue please ?

like image 830
Ilyes Avatar asked May 03 '19 23:05

Ilyes


1 Answers

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.

like image 112
cel Avatar answered Nov 15 '22 12:11

cel