Compiling Python on Windows

Reproduction Stages

I am trying to create a version of Pandas development on a machine running Windows 7 with Python 2.7.6. I followed the following steps ( http://pandas.pydata.org/pandas-docs/dev/install.html ).

  • I checked that I had the necessary dependencies and some of the optional ones (Cython = .20, Numpy = 1.7.1, Python-DateUtil = 1.5, pytz = 2013.9)
  • I double checked that dependencies were updated
  • I cloned github using git clone git: //github.com/pydata/pandas.git
  • I installed the minGW compiler package (including C and C ++ compilers).
  • Setting up mingw - version 4.3.3
  • I made sure pydistutils.cfg is in the right place (C: \ Python27 \ Lib \ distutils) and has the following code:

    [build] compiler=mingw32 
  • I am trying to build using: python setup.py build --compiler == mingw32
  • It starts in a few seconds, then the error below is triggered.

Error

Error message

How can I fix this so that it is built? Thanks!

+1
source share
1 answer

Just in case, someone made the same mistake as I did, I realized that I was using 64-bit Windows 7 with 32-bit MinGW compiler. There's a MinGW compiler 64 bits here that fixed this problem.

0
source

All Articles