Hello,
I'm attempting to install gensim 4.1.2 on Windows Server 2019 Data Center. I have python 3.8, pip 21.2.4. No errors are visible during gensim's installation, however, if I try to import gensim, I get the below error.
>>> import gensim
Traceback (most recent call last):
File "E:\Python\Python38\lib\site-packages\gensim\models\fasttext.py", line 264, in <module>
from gensim.models.fasttext_corpusfile import train_epoch_sg, train_epoch_cbow
ImportError: DLL load failed while importing fasttext_corpusfile: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "E:\Python\Python38\lib\site-packages\gensim\__init__.py", line 11, in <module>
from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401
File "E:\Python\Python38\lib\site-packages\gensim\models\__init__.py", line 22, in <module>
from .fasttext import FastText # noqa:F401
File "E:\Python\Python38\lib\site-packages\gensim\models\fasttext.py", line 266, in <module>
raise utils.NO_CYTHON
RuntimeError: Compiled extensions are unavailable. If you've installed from a package, ask the package maintainer to include compiled extensions. If you're building Gensim from source yourself, install Cython and a C compiler, and then run `python setup.py build_ext --inplace` to retry.
>>>
It references missing compiled extensions, however I've installed gensim the exact same way from several laptops and I've had no issues. Also, I've confrimed that Cython 0.29.23 is installed. The only difference in what I did on the server was that on the server, I installed python to the E drive rather than the default location on C. Is it possible that gensim's extensions went to some default location and this is why they aren't being seen? Where can I go to look for the missing module\extensions?
I've already confirmed that the following files do exist in gensim\models
fasttext_corpusfile.cp38-win_amd64.pyd
fasttext_corpusfile.cpp
fasttext_corpusfile.pyx
I've also tried:
uninstalling and reinstalling gensim
uninstalling and reinstalling cython, numpy, and scipy
confirming that the versions of cython, numpy, and scipy are the same versions that are working perfectly from laptops
Thanks very much for any ideas you can give me on this.
Joy