Install PyMC3 on Windows 10 (Anaconda)

Table of Contents

I tried installing PyMC on Windows 10 to learn materials in the book of "Bayesian Methods for Hackers", but I encountered problems, which seems owing to suspension of maintenance. I first created a virtual environment of pymc3 and then installed necessary packages using conda:
[cc]
> conda create -n pymc3 python=3.6
> activate pymc3
> conda install matplotlib
> conda install pymc3
[/cc]
However, [cci_python]import pymc3[/cci_python] lead to [cci_python]ModuleNotFoundError[/cci_python]. So did [cci_python]import pymc[/cci_python](installing pymc2). Fortunately I found a solution from this article (in Japanese) and summarized how I accommodated below. First I recreated a virtual environment for pymc3 and then started installing Python3.5 instead of Python 3.6.
[cc]
> deactivate
> conda remove -n pymc3 --all
> conda create -n pymc3 python=3.5
> activate pymc3
> conda install numpy scipy mkl-service libpython m2w64-toolchain nose sphinx git matplotlib jupyter
> pip install --user git+https://github.com/Theano/Theano.git#egg=Theano
[/cc]
This worked. However some warnings appeared associated with [cci_python]Deprecated[/cci_python] and thus PyMC3 may be useful for learning. Further information, including Jupyter notebooks, can be obtained from Github.

One thought on “Install PyMC3 on Windows 10 (Anaconda)

  1. carl patterson says:

    FWIW, the instruction here worked for me (after quite a frustrating week).

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.