Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 python安装";cc1.exe:错误:无法识别的命令行选项'-mno cygwin'&引用;_Python 2.7_Mingw32_Rrdtool - Fatal编程技术网

Python 2.7 python安装";cc1.exe:错误:无法识别的命令行选项'-mno cygwin'&引用;

Python 2.7 python安装";cc1.exe:错误:无法识别的命令行选项'-mno cygwin'&引用;,python-2.7,mingw32,rrdtool,Python 2.7,Mingw32,Rrdtool,大家好,我正试图在我的Windows7系统上安装rrdtool(用于PYTHON 2.7),我使用以下命令行安装它 python setup.py install build --compiler=mingw32 它提供了以下输出: running install running build running build_ext running build_configure building 'rrdtoolmodule' extension C:\MinGW\bin\gcc.exe -mno

大家好,我正试图在我的Windows7系统上安装rrdtool(用于PYTHON 2.7),我使用以下命令行安装它

python setup.py install build --compiler=mingw32
它提供了以下输出:

running install
running build
running build_ext
running build_configure
building 'rrdtoolmodule' extension
C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Irrdtool-1.4.7/src -IC:\Python2
7\include -IC:\Python27\PC -c rrdtool-1.4.7/bindings/python/rrdtoolmodule.c -o b
uild\temp.win32-2.7\Release\rrdtool-1.4.7\bindings\python\rrdtoolmodule.o
cc1.exe: error: unrecognized command line option '-mno-cygwin'
error: command 'gcc' failed with exit status 1
我已经尝试了很多解决方案,但是没有成功。我正在使用mingw版本4.6.2

有人能帮我吗。

看看这个答案:

您需要在Python目录中编辑distutils\cygwingcompiler.py以删除-mno cygwin的所有实例

祝你好运参见以下答案:

您需要在Python目录中编辑distutils\cygwingcompiler.py以删除-mno cygwin的所有实例

祝你好运