-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Installation Guide (Windows)
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
/Aesara
require 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
. ⚠
Run conda env create -f environment.yml
to create a fresh environment in one step.
environment.yml
name: pm3env
channels:
- conda-forge
- defaults
dependencies:
- libpython
- mkl-service
- m2w64-toolchain
- numba
- pip
- python=3.8
- python-graphviz
- scipy
- pip:
- pymc3
Alternatively you can use the following command:
conda create -n pm3env -c conda-forge "python=3.8" libpython mkl-service m2w64-toolchain numba python-graphviz scipy
After that, PyMC3 can be installed with
pip install 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
TBA