piskvorky/gensim

Bug on Import gensim

PixelJunkie33 opened this issue · 1 comments

Problem description

Import Gensim py.env 3.11.3. I tried L pip install gensim==4.1.2 and pip install scipy==1.7.3

Steps/code/corpus to reproduce

import gensim
from gensim import corpora
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
from nltk.tokenize import word_tokenize

Versions

Please provide the output of:

ImportError: cannot import name 'triu' from 'scipy.linalg' (c:\Users\ktpra\AppData\Local\Programs\Python\Python311\Lib\site-packages\scipy\linalg\__init__.py)

Duplicate of #3525 - there's a workaround there (install a slightly-older scipy) & the next version of Gensim will have a fix.