pymc-resources
pymc-resources copied to clipboard
Chp_02.ipynb, import statement
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'
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.
Thx @yahrMason, after running pip install pymc
it also worked for me.