Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gensim: "C extension not loaded, training will be slow."

I am running gensim on Linux Suse. I can start my python program but on startup I get:

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

GCC is installed. Does anyone know what I have to do?

like image 870
Janothan Avatar asked Jan 29 '26 09:01

Janothan


1 Answers

Try the following:

Python 3.x

$ pip3 uninstall gensim    
$ apt-get install python3-dev build-essential      
$ pip3 install --upgrade gensim

Python 2.x

$ pip uninstall gensim    
$ apt-get install python-dev build-essential      
$ pip install --upgrade gensim
like image 119
Maxim Avatar answered Jan 31 '26 12:01

Maxim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!