Python:-mno -cygwin [英] Python: -mno -cygwin

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

问题描述

我试图在windows上学习很多python,包括安装几个软件包,但每次我调用python setup.py安装我有一个问题-mno -cygwin gcc。

i'm trying to learn a lot of python on windows and that includes installing several packages, however everytime i invoke python setup.py install i have a problem with -mno -cygwin for gcc.

我已经阅读了很多文章,似乎他们希望这些单独的软件包等待修复自己的版本。

i've have read already a lot of articles and it seems they want that these individual packages to wait for the fix on their own builds.

任何人只能提供一个gcc版本,我可以安装,仍然支持-mno -cygwin所以我可以继续研究我想要关注的领域?

can anyone just provide me a gcc version that i can install that still supports -mno -cygwin so i can go on studying the areas i would like to focus?

谢谢!

推荐答案

是Python代码中的一个错误。我找到解决它的唯一方法是编辑文件 C:\Python27\Lib\distutils\cygwinccompiler.py

I had this problem too, and this is a bug in the Python code. The only way I found to fix it was to edit the file C:\Python27\Lib\distutils\cygwinccompiler.py.

在此文件中,您必须删除 -mno-cygwin 的每一次。

In this file you must remove every occurence of -mno-cygwin.

对于通过MinGW安装的GCC也是如此。

The same goes for GCC installed through MinGW.

这篇关于Python:-mno -cygwin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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