You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deepakgthomas edited this page May 25, 2022
·
32 revisions
PyMC Installation for Linux
We recommend installing PyMC into a clean conda environment, which here is called pymc_env but can be changed to anything else:
conda create -n pymc_env python
Until PyMC v4 is officially released, it should be installed from pip using the --pre flag (N.B. running without this flag will install v2). Activate the environment that you wish to install into, and install as follows:
conda activate pymc_envpip install pymc --pre
JAX sampling
If you wish to enable sampling using the JAX backend via NumPyro (experimental), the following should also be installed:
pip install jax jaxlib numpyro
Similarly, to use BlackJAX for sampling it should be installed via pip:
pip install blackjax
PyMC3 Installation
The latest release of PyMC3 can be installed from Conda Forge (conda-forge):
Note that you must specifically request theano-pymc or you will get an obsolete version of PyMC3 that works with the now-abandoned theano library. We encourage you to test this with the --dry-run flag to ensure you get up-to-date versions.
While discouraged due to reports of installation problems you could try to install PyMC3 and its dependencies via PyPI using pip: