AllenDowney / ThinkBayes2

Text and code for the forthcoming second edition of Think Bayes, by Allen Downey.
http://allendowney.github.io/ThinkBayes2/
MIT License
1.8k stars 1.49k forks source link

Empiricaldist module #38

Closed FedeVass closed 9 months ago

FedeVass commented 3 years ago

Seems like there is a module missing; "empiricaldist". Where can I find it? Thanks

AllenDowney commented 3 years ago

It's on PyPI,

https://pypi.org/project/empiricaldist/

you can install it like this:

pip install empiricaldist

This notebook walks through the API:

https://nbviewer.jupyter.org/github/AllenDowney/empiricaldist/blob/master/empiricaldist/dist_demo.ipynb

I tried to document this requirement, so maybe you can help me improve the instructions: how did you get stuck?

On Sat, Apr 17, 2021, at 5:20 AM, FedeVass wrote:

Seems like there is a module missing; "empiricaldist". Where can I find it? Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ThinkBayes2/issues/38, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOLP3J7OOBRFN5U5GXIHZ3TJFHG7ANCNFSM43C4DXXA.

FedeVass commented 3 years ago

Hi there, I got some error messages trying to install it with pip (I don't have them now, but they were related to the SSL certificate or similar). So, instead, I downloaded the package and copied the py files to the library folder of my anaconda installation. Seems to be working now. Thank you Federico

FedeVass commented 3 years ago

Oh , I found the error message I was getting with pip. Here it is, in case you have a clue about what was wrong: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /packages/64/ce/732891161f5ca77d8a50616ad3081ec307bddcaa5ad604702bdb2f7654ad/empiricaldist-0.6.1.tar.gz

AllenDowney commented 3 years ago

That looks like a problem with your Python installation.

It's good that you worked around it, but I suspect you will have problems with other packages you install with pip.

If you are not using Anaconda, I recommend it.

On Mon, Apr 19, 2021, at 7:53 AM, FedeVass wrote:

Oh , I found the error message I was getting with pip. Here it is, in case you have a clue about what was wrong: WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)'))': /packages/64/ce/732891161f5ca77d8a50616ad3081ec307bddcaa5ad604702bdb2f7654ad/empiricaldist-0.6.1.tar.gz

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ThinkBayes2/issues/38#issuecomment-822407956, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOLP3IZV444HO4R242J7VDTJQKTXANCNFSM43C4DXXA.

FedeVass commented 3 years ago

Hi again, Yes I do have Anaconda. It's just that i have at least 2 or 3 python installations, and I believe the pip command was using the wrong one. So the manual setup worked fine. Thanks a lot Cheers Federico

AllenDowney commented 3 years ago

Makes sense. Glad you got it working!

On Mon, Apr 19, 2021, at 10:09 AM, FedeVass wrote:

Hi again, Yes I do have Anaconda. It's just that i have at least 2 or 3 python installations, and I believe the pip command was using the wrong one. So the manual setup worked fine. Thanks a lot Cheers Federico

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ThinkBayes2/issues/38#issuecomment-822496681, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOLP3IMSCBTANNYC3ZJKBTTJQ2RNANCNFSM43C4DXXA.