Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chp_02.ipynb, import statement #195

Open
tgrunzweig-cpacket opened this issue Jun 14, 2022 · 2 comments
Open

Chp_02.ipynb, import statement #195

tgrunzweig-cpacket opened this issue Jun 14, 2022 · 2 comments

Comments

@tgrunzweig-cpacket
Copy link

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
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants