0

I'm using Python, Django, IDE PyCharm. I imported Gensim for my project, however, seems like Django does not recognize it. Here are my versions: gensim-3.6.0 numpy-1.15.4 scipy-1.1.0 python 3.7.1

The following error is:

Traceback (most recent call last):
  File "C:/Users/Me/PycharmProjects/sma-capstone-2018/sma_core/brinfluence/lib/doc2vec.py", line 4, in <module>
    import gensim
  File "C:\Users\Me\venv\lib\site-packages\gensim\__init__.py", line 5, in <module>
    from gensim import parsing, corpora, matutils, interfaces, models, similarities, summarization, utils  # noqa:F401
  File "C:\Users\Me\venv\lib\site-packages\gensim\parsing\__init__.py", line 4, in <module>
    from .preprocessing import (remove_stopwords, strip_punctuation, strip_punctuation2,  # noqa:F401
  File "C:\Users\Me\venv\lib\site-packages\gensim\parsing\preprocessing.py", line 40, in <module>
    from gensim import utils
  File "C:\Users\Me\venv\lib\site-packages\gensim\utils.py", line 40, in <module>
    import scipy.sparse
  File "C:\Users\Me\venv\lib\site-packages\scipy\sparse\__init__.py", line 229, in <module>
    from .csr import *
  File "C:\Users\Me\venv\lib\site-packages\scipy\sparse\csr.py", line 15, in <module>
    from ._sparsetools import csr_tocsc, csr_tobsr, csr_count_blocks, \
ImportError: DLL load failed: The specified module could not be found.
7
  • is your path set correctly? if you recently installed gensim, maybe the path variable has not been updated yet. Therefore, a restart of your shell or of the whole windows machine might bring an improvement. Dec 1, 2018 at 12:45
  • are you using a virtualenv? did you install it using command line or pycharm? Dec 1, 2018 at 13:03
  • @PeterGrundner I did, but it didn't help
    – Liana
    Dec 1, 2018 at 13:28
  • @Incognos using pycharm terminal
    – Liana
    Dec 1, 2018 at 13:28
  • did you use a virtualenv? if so, please do a pip list and show the results of your virtualenv Dec 1, 2018 at 15:30

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.