Python在Windows上编译开发构建 [英] Python Compile Dev Build on Windows

查看:156
本文介绍了Python在Windows上编译开发构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

复制步骤

我试图在Python 2.7.6的Windows 7机器上构建Pandas的开发版本。我遵循这里的步骤(解决了这个问题。


Reproduction Steps

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

  1. I checked that I had the needed dependencies and some of the optional ones as well (Cython=.20, Numpy=1.7.1, Python-DateUtil=1.5, pytz=2013.9)
  2. I double checked the dependencies were up to date
  3. I cloned the github with: git clone git://github.com/pydata/pandas.git
  4. I installed the minGW compiler suite (including C and C++ compilers)
  5. The mingw setup is version 4.3.3
  6. I made sure that the pydistutils.cfg is in the correct location (C:\Python27\Lib\distutils) and has the following code:

    [build]
    compiler=mingw32
    

  7. I attempt to build using: python setup.py build --compiler==mingw32
  8. This begins to build for a few seconds, then runs into the below error

Error

How can I fix this so it builds? Thanks!

解决方案

Just in case someone made the same mistake as me, I realized I'm using a 64-bit Windows 7 with only a 32-bit MinGW compiler. There's a MinGW 64 bit compiler here that fixed this issue.

这篇关于Python在Windows上编译开发构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆