简体   繁体   中英

Problem importing pymc3 in jupyter notebook

Importing pymc3 in my jupyter notebook causes the following error:

ImportError: cannot import name 'logsumexp'"

Here are some other package versions:

  • Windows 10
  • Python 3.6.7
  • Numpy 1.17.0
  • Matplotlib 3.0.3
  • Pandas 0.23.4
  • Scipy 1.5.1
  • Scitkitlearn 0.23.1
  • Statsmodels 0.11.1
  • Theano 1.0.4

Trying other pymc3 didn't solved the problem


I did manage to import logsumxp this way:

from pymc3.special import logsumexp

But when I import Normal the same way, I get this error:

AttributeError: module 'xarray.core' has no attribute 'formatting_html'

Did you install it already? For example with "pip install pymc3" ( https://docs.pymc.io/ )?

For me, the imports don't work when using the pymc3.special module because it says, it does not exist.

Try " from pymc3 import Normal "

If you can't find a solution for your local jupyter notebook, you could alternatively simply use Google Collab to create and use your notebook there: https://colab.research.google.com/ .

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