在Cygwin上安装Python 3.3 [英] Installing Python 3.3 on Cygwin

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

问题描述

我无法在Cygwin上安装Python 3.3。我已尝试从源代码安装,但 make 返回:

I'm having trouble installing Python 3.3 on Cygwin. I've tried installing from source, but make returns:

gcc -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes     -I. -IInclude -I./Include    -DPy_BUILD_CORE  -c ./Modules/signalmodule.c -o Modules/signalmodule.o
In file included from Include/Python.h:84:0,
                 from ./Modules/signalmodule.c:6:
./Modules/signalmodule.c: In function `fill_siginfo':
./Modules/signalmodule.c:745:60: error: `siginfo_t' has no member named `si_band'
     PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
                                                            ^
Include/tupleobject.h:62:75: note: in definition of macro `PyTuple_SET_ITEM'
 #define PyTuple_SET_ITEM(op, i, v) (((PyTupleObject *)(op))->ob_item[i] = v)
                                                                           ^
./Modules/signalmodule.c:745:5: note: in expansion of macro `PyStructSequence_SET_ITEM'
     PyStructSequence_SET_ITEM(result, 6, PyLong_FromLong(si->si_band));
     ^
Makefile:1501: recipe for target `Modules/signalmodule.o' failed
make: *** [Modules/signalmodule.o] Error 1
Makefile:1501: recipe for target 'Modules/signalmodule.o' failed
make: ***[Modules/signalmodule.o] error 1

任何想法?

推荐答案

在Cygwin上构建Python并不简单 - 但是,Python社区的bug跟踪网站对于其规模和重要性的项目来说是非常友好和温和的。如果您发现具体问题,打开错误并按照讨论。通常,他们会接受小补丁来修复Cygwin构建问题。

Building Python on Cygwin is not trivial -- I tried. However, the Python community on its bug tracker website is unusually friendly and gentle for a project its size and importance. If you find specific issues, open bugs and follow the discussion. Usually, they will accept tiny patches to fix Cygwin build issues.

这个补丁将解决你的第一个关于 si-> si_band 的问题。请参阅相关的Python问题#21085

This patch will solve your first problem about si->si_band. See related Python issue #21085.

< a href =https://www.hartmutpfarr.de/cygwin_python_3_4 =nofollow>此博文(德语)令人惊叹。它将逐步介绍如何构建Python3.4并修复所有Cygwin问题。

This blog post (in German) is amazing. It will walk you through step-by-step how to build Python3.4 and fix all Cygwin issues.

祝你好运。您将需要它。

Good luck. You will need it.

这篇关于在Cygwin上安装Python 3.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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