title: How to build cython pyx to pyd in anaconda(python3.6) in windows 8.1?
body: <p>I have referred some websites to build pyx to pyd in Windows 8.1.I 'm using Anaconda Distribution with Spyder IDE, I have developed pyx file and unable to build in "Anaconda Command Prompt" 
  Anaconda></p>
  
  <pre><code>python setup.py build --inplace --compiler=mingw32 
  </code></pre>
  
  <p>and tried</p>
  
  <pre><code>python setup.py build_ext --inplace --compiler=mingw32
  </code></pre>
  
  <p>getting following error:</p>
  
  <pre><code>File "C:\ProgramData\Anaconda3\lib\distutils\cygwinccompiler.py", line 129 in __init__  
    if self.ld_version &gt;= "2.10.90":
  TypeError: '&gt;=' not supported between instances of 'NoneType' and 'str'
  </code></pre>
  
  <p>my simple pyx code is</p>
  
  <pre><code>cdef int fib(int n):    
      cdef int a, b, i
      a, b  = 1, 1
      for i in range(n):
         a, b = a+b, a
      return a
  </code></pre>
  
  <p>and my setup.py file as below..</p>
  
  <pre><code>from distutils.core import setup
  from Cython.Build import cythonize
  
  setup(ext_modules = cythonize('fb.pyx'))
  </code></pre>
  
  <p>Howto get rid of this in windows 8.1? I would like use Struct and Socket libraries for my socket programming.</p>