solutions for python pip install gcc compilation error: -mno-cygwin

copyright (C) 2011-2017


(1)install unofficial python extension package  binary installer

Unofficial Windows Binaries for Python Extension Packages

by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine.


MinGWmay be not compatible with python pip compiler:   -mno-cygwin
remove the official mingw from path. or install mingw built for python

Windows GCC (MinGW) binaries for Python developers  gcc4.3


(3) Remove the  -mno-cygwin  option

-mno-cygwin in Python\Lib\distutils\ causes this problem: see Compiling with cython and mingw produces gcc: error: unrecognized command line option ‘-mno-cygwin’ or

My Python distribution (Anaconda)’s does not have that though. Anyway, after removing all -mno-cygwin in the definition of the Mingw32CCompiler class you should be able to compile.

BSD documentation licensed Free for non-commercial usage only
Author: Qingfeng XIA
copyright (C) 2011-2017
please keep the original link in your reference.
This entry was posted in Uncategorized. Bookmark the permalink.