Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week 3: cannot import name 'logsumexp' from scipy.misc #43

Open
plediii opened this issue Aug 9, 2019 · 1 comment
Open

Week 3: cannot import name 'logsumexp' from scipy.misc #43

plediii opened this issue Aug 9, 2019 · 1 comment

Comments

@plediii
Copy link

plediii commented Aug 9, 2019

Running the Week 3 notebook on google colab (after previously encountering #33), I see

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-7-e70e92d32c6e> in <module>()
----> 1 import gensim

3 frames
/usr/local/lib/python3.6/dist-packages/gensim/models/ldamodel.py in <module>()
     49 
     50 # log(sum(exp(x))) that tries to avoid overflow
---> 51 from scipy.misc import logsumexp
     52 
     53 

ImportError: cannot import name 'logsumexp'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------
@plediii
Copy link
Author

plediii commented Aug 9, 2019

Upgraded Gensim by adding a code cell with

! pip install -U gensim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant