0

I just installed gensim with pip install -u gensim. Pycharm throws the following error:

ModuleNotFoundError: No module named 'gensim'

I tried pip3 install gensim, same error (after opening and closing the IDE). I also installed it with conda install -c anaconda gensim. Gensim 4.1.2 shows up both in my pip list and my conda list. Both gensim and numpy are up to date, so I'm not sure what's going wrong, any ideas?

edit: I'm using Windows 10, Numpy 1.21.2 (and Gensim 4.1.2)

Kate S.D.
  • 105
  • 10
  • Check this discussion (https://stackoverflow.com/questions/46168600/gensim-error-no-module-named-gensim), I think there you can find an answer. – vladislavAks Nov 28 '21 at 18:56

1 Answers1

0

the venv file of Pycharm and anaconda may not be the same, you can set it from the Interpreter section of the settings, I'm happy if I could help

  • My interpreter is currently set to the default Python3.8 interpreter. It is my understanding that this should work if I use pip install? – Kate S.D. Nov 28 '21 at 19:00
  • You should use anaconda python interpreter, see https://docs.anaconda.com/anaconda/user-guide/tasks/integration/python-path/ – Sylvan LE DEUNFF Dec 03 '21 at 10:10