Python在Windows上编译开发构建 [英] Python Compile Dev Build on Windows
本文介绍了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).
- 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)
- I double checked the dependencies were up to date
- I cloned the github with: git clone git://github.com/pydata/pandas.git
- I installed the minGW compiler suite (including C and C++ compilers)
- The mingw setup is version 4.3.3
I made sure that the pydistutils.cfg is in the correct location (C:\Python27\Lib\distutils) and has the following code:
[build] compiler=mingw32
- I attempt to build using: python setup.py build --compiler==mingw32
- 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屋!
查看全文