-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Installation Guide (Windows)
Michael Osthege edited this page Jan 8, 2021
·
49 revisions
The essence of a solid PyMC3 installation on Windows is to install most of the dependencies through conda
.
The reason installation via PyPI is difficult is that Theano
requires compilation against MKL, which is difficult to set up, while Conda comes with its own compilers and MKL installation.
!! Do not pip install
without first installing dependencies with conda
!!
# starting out with a fresh environment
conda install -n mypm3env python=3.8 mkl-service libpython m2w64-toolchain scipy matplotlib pandas
# or with an existing one
conda install mkl-service libpython m2w64-toolchain scipy
After that, PyMC3 can be installed with
pip install pymc3
or
conda install -c conda-forge pymc3
If you want to tinker with PyMC3 itself, first clone the repository and then make an "editable" installation:
git clone https://github.com/pymc-devs/pymc3/
cd pymc3
pip install --editable .
If you have the original Theano installed, please remove it and install Theano-PyMC via Conda Forge:
conda remove theano
conda install -c conda-forge theano-pymc
- The GLM submodule relies on Patsy.
-
pm.model_to_graphviz
depends on Graphviz andpydot
:conda install -c python-graphviz
pip install pydot