Python在Windows上编译开发构建

编程入门 行业动态 更新时间:2024-10-10 16:18:20
本文介绍了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 (pandas.pydata/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/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上编译开发构建

    本文发布于:2023-06-02 22:46:11,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/457491.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:Python   Windows

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!