pymc-devs / pymc-resources

PyMC educational resources
MIT License
1.95k stars 743 forks source link

Chp_02.ipynb, import statement #195

Open tgrunzweig-cpacket opened 2 years ago

tgrunzweig-cpacket commented 2 years ago

Greatly appreciated effort here, thank you.

cloned your latest repository, created an environment as per instructions. Noted in the environment.yml we have entires for pymc3 and pymc-theano, but not for pymc.

The first cell of chp2 is:

import arviz as az import matplotlib.pyplot as plt import numpy as np import pymc as pm import scipy.stats as stats

Output

ModuleNotFoundError Traceback (most recent call last) Input In [9], in <cell line: 4>() 2 import matplotlib.pyplot as plt 3 import numpy as np ----> 4 import pymc as pm 5 import scipy.stats as stats

ModuleNotFoundError: No module named 'pymc'

yahrMason commented 2 years ago

I have found this issue as well. I have gotten around it by pip installing pymc after I activate the stat-rethink2-pymc environment. I am sure this is not the preferred way to do this, but I have had success running the code using the new version of pymc. That may be suitable a suitable solution until the environment file is updated.

andreas-bauer commented 2 years ago

Thx @yahrMason, after running pip install pymc it also worked for me.