本文介绍了Python在Windows上编译开发构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
复制步骤 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/pydata/pandas.git
I installed the minGW compiler suite (including C and C++ compilers)
The mingw setup is version 4.3.3
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
我试图在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 (pandas.pydata/pandas-docs/dev/install.html).
I made sure that the pydistutils.cfg is in the correct location (C:\Python27\Lib\distutils) and has the following code:
[build] compiler=mingw32Error
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上编译开发构建
发布评论