C extension not loaded for Word2Vec
I reinstall gensim pkg and Cython but it keeps showing this warning, Does anyone know about this? I am using Python 3.6, PyCharm Linux Mint.
UserWarning: C extension not loaded for Word2Vec, learning will be slow. Install the C compiler and reinstall gensim for quick learning. warnings.warn ("C extension not loaded for Word2Vec, learning will be slow."
And it also shows this line when I create or load the model.
The slow version of gensim.models.doc2vec is used
There is some problem with some base packages that are not updated. Here I found an answer that works for me, it briefly:
Remove Gensim
sudo pip3 uninstall gensim
Install python3-dev build-essential
sudo apt-get install python3-dev build-essential
Reinstall Gensim
sudo pip3 install --upgrade gensim
Notes:
The instructions above are for systems where pip and apt-get are used to manage packages
pip3 is the python3 pip version