title: How to Install M2crypto on Windows
body: <p>After <a href="http://slproweb.com/products/Win32OpenSSL.html" rel="noreferrer">installing OpenSSL</a>, downloading the <a href="http://www.swig.org/download.html" rel="noreferrer">pre-built Swig executable</a>, and ensuring the <a href="https://stackoverflow.com/questions/6436771/easy-install-m2crypto-failing-on-windows-platform">openssl libraries are located in the default</a> <code>c:\pkg</code>, <code>pip install m2crypto</code> results in:</p>
  
  <pre><code>...
  C:\Program Files (x86)\gfortran\bin\gcc.exe -mno-cygwin -mdll -O -Wall -IC:\Pyth
  on27\include -IC:\Python27\PC -Ic:\pkg\include -Ic:\users\evbo\appdata\local\tem
  p\pip_build_evbo\m2crypto\SWIG -c SWIG/_m2crypto_wrap.c -o build\temp.win32-2.7\
  Release\swig\_m2crypto_wrap.o -DTHREADING
  
  gcc: error: unrecognized command line option '-mno-cygwin'
  
  error: command 'gcc' failed with exit status 1
  </code></pre>
  
  <p>It seems the <a href="https://stackoverflow.com/questions/9078493/installing-m2crypto-on-windows">binary installer solution for M2crypto</a> is no longer available and I don't see any mistakes I've made based on the <a href="https://github.com/martinpaljak/M2Crypto/blob/master/INSTALL" rel="noreferrer">M2crypto install doc</a>.</p>
  
  <p>How might I resolve this install issue? Is there a dependency on older versions of GCC?</p>