Skip to content

Installation Guide (Windows)

Chris Fonnesbeck edited this page Oct 27, 2021 · 49 revisions

PyMC v3 Installation on Windows

Installing PyMC v3 under Windows is a two-step process, with conda being used to set up an environment and then pip to install PyMC itself. Using conda allows Theano-PyMC to easily access MKL.

It is usually a good idea to install into a fresh conda environment, which we will call pymc_env:

conda create -n pymc_env -c conda-forge python libpython mkl-service m2w64-toolchain numba python-graphviz scipy

Next, PyMC can be installed into the environment we have created:

conda activate pymc_env
pip install pymc3

If you are updating a previous version of PyMC, you may need to remove Theano and install Theano-PyMC before updating:

conda remove theano
conda install -c conda-forge theano-pymc

PyMC v4 Installation Instructions

Until a release version of PyMC v4 is available, it must be installed directly from the repository itself:

git clone https://github.com/pymc-devs/pymc/
conda env create -f conda\windows-environment-test-py38.yml
conda activate pymc-test-py38
pip install -e .
Clone this wiki locally