【问题标题】:Python Compile Dev Build on WindowsPython 在 Windows 上编译开发构建
【发布时间】:2014-02-10 18:11:16
【问题描述】:

复制步骤

我正在尝试在装有 Python 2.7.6 的 Windows 7 机器上构建 Pandas 的开发版本。我按照这里的步骤 (http://pandas.pydata.org/pandas-docs/dev/install.html)。

  1. 我检查了我是否有所需的依赖项以及一些可选的依赖项(Cython=.20、Numpy=1.7.1、Python-DateUtil=1.5、pytz=2013.9)
  2. 我仔细检查了依赖项是否是最新的
  3. 我克隆了 github:git clone git://github.com/pydata/pandas.git
  4. 我安装了 minGW 编译器套件(包括 C 和 C++ 编译器)
  5. mingw 设置是 4.3.3 版
  6. 我确保 pydistutils.cfg 位于正确的位置 (C:\Python27\Lib\distutils) 并具有以下代码:

    [build]
    compiler=mingw32
    
  7. 我尝试使用:python setup.py build --compiler==mingw32 进行构建
  8. 这开始构建几秒钟,然后遇到以下错误

错误

我怎样才能解决这个问题以便它构建?谢谢!

【问题讨论】:

    标签: python windows gcc


    【解决方案1】:

    以防万一有人和我犯了同样的错误,我意识到我使用的是 64 位 Windows 7,只有 32 位 MinGW 编译器。有一个 MinGW 64 位编译器 here 解决了这个问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-23
      • 1970-01-01
      • 2015-08-25
      • 1970-01-01
      • 1970-01-01
      • 2012-07-01
      相关资源
      最近更新 更多