简体   繁体   中英

ImportError: cannot import name 'logsumexp' from 'scipy.misc' (C:\Users\firstname.lastname\Anaconda3\lib\site-packages\scipy\misc\__init__.py)

I'm trying to import hmm with jupyter notebook under anaconda env with python 3. I tried to update the packages with the following commands,

pip install scikit-learn --upgrade
pip install scipy --upgrade
pip install sklearn --upgrade

But still I'm getting the same error.

do this

from scipy.special import logsumexp

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM