pymc-resources icon indicating copy to clipboard operation
pymc-resources copied to clipboard

Chp_02.ipynb, import statement

Open tgrunzweig-cpacket opened this issue 2 years ago • 2 comments

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'

tgrunzweig-cpacket avatar Jun 14 '22 17:06 tgrunzweig-cpacket

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.

yahrMason avatar Jun 16 '22 01:06 yahrMason

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

andreas-bauer avatar Jul 01 '22 14:07 andreas-bauer