Installation#

We recommend using Anaconda (or Miniforge) to install Python on your local machine, which allows for packages to be installed using its conda utility.

Once you have installed one of the above, PyMC can be installed into a new conda environment as follows:

conda create -c conda-forge -n pymc_env pymc
conda activate pymc_env

If you like, replace the name pymc_env with whatever environment name you prefer.

JAX sampling#

If you wish to enable sampling using the JAX backend via NumPyro, the following should also be installed:

pip install numpyro

Similarly, to use BlackJAX for sampling it should be installed via pip:

pip install jax jaxlib blackjax

Note that JAX is not directly supported on Windows systems at the moment.