Windows 10, pycm3, and scipy versions: Issue with logsumexp

I was installing pymc3 and gotten past issues related to Theano. I am using an Anaconda environment and python 3.5. When I ran import pymc3 as pm, I had the error:

"
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\wdem\anaconda3\envs\neuralnets\lib\site-packages\pymc3_init_.py”, line 7, in
from .stats import *
File “C:\Users\wdem\anaconda3\envs\neuralnets\lib\site-packages\pymc3\stats.py”, line 10, in
from scipy.misc import logsumexp
ImportError: cannot import name ‘logsumexp’
"

I am using scipy version 1.4 which is necessary for Theano. In this version the function logsumexp is actually in scipy.special. So what I did was go into stats.py and change “scipy.misc” to “scipy.special”. Now everything appears to work. I’m wondering if there’s a better way to get this to work, or if this is a bug that needs to be fixed?

Thanks!

Pymc3 version: 3.0
Theano version: 1.0.2

To import logsumexp:

from scipy.special import logsumexp

By the way, you should upgrade pymc3 to the last version.