Skip to content

Building PyMC from source on Windows

Chris Fonnesbeck edited this page Apr 12, 2016 · 1 revision

Windows users often run into difficulties building PyMC from source, and because the developers tend not to work on this platform, we usually cannot provide much detailed advice. However, Nick Larson, a user on the mailing list, has shared the steps that he took to get PyMC built on his Windows system:

  1. Install Python 2.6 (I couldn't get a working version of PyMC in 2.5)

  2. Install Numpy

  3. Install Git

  4. Install MinGW (I just opted to install all the compilers just to be safe)

  5. Install MSYS

  6. Add C:Python26 to 'Path' environment variable (easily done with right clicking on My Computer -> Properties -> Advanced). Also, make sure to edit the PYTHONPATH environment variable if it exists to point toward 'C:Python26'

  7. Create a distutils.cfg file in 'C:Python26Libdistutils' (just use notepad) that reads:

    [build]
    compiler = mingw32
    
  8. Use git to clone the repository as described from the Git Bash:

    git clone git://github.com/pymc-devs/pymc.git
    
  9. Open up the command prompt (run cmd), navigate to the folder, and run 'python setup.py bdist_wininst' and run the compiled executable in the dist folder.

Clone this wiki locally