title: Installing Zbar in Windows for Python 2.6.6
body: <p>I am trying to install Zbar with Python 2.6.6 but getting a lot of error's i tried to remove them but still left with one,</p>
  
  <p>When i tried to install zbar with my cmd i got error:</p>
  
  <pre><code>  C:\zbar&gt;python setup.py install
  running install
  running build
  running build_ext
  building 'zbar' extension
  error: Unable to find vcvarsall.bat
  </code></pre>
  
  <p>(I have the <a href="https://github.com/ZBar/ZBar/tree/master/python" rel="nofollow">zbar</a> folder in my c drive)
  did'nt understood what does this means in <a href="https://github.com/ZBar/ZBar/tree/master/python" rel="nofollow">this</a> page
  "Windows users please note: the module <em>will NOT load</em> unless the ZBar
  library DLL (currently libzbar-0.dll) is available in your Windows system
  PATH!" so i left it as it is.
  In Environment Variables Path i have added only these (is it ok ?)</p>
  
  <pre><code>;C:\Python26;C:\MinGW\bin
  </code></pre>
  
  <p>Then i downloaded <a href="http://www.mingw.org/" rel="nofollow">MinGW</a> (selected the MinGW base tools, g++ compiler and MinGW make)
  after i installed it then i got error</p>
  
  <pre><code> error：unrecognized command line option ‘-mno-cygwin’
  error: command ‘gcc’ failed with exit status 1
  </code></pre>
  
  <p>Then i checked the gcc --version it's 4.8.1 and i made changes in Libs/disutils/cygwincompiler.py file :</p>
  
  <pre><code>    self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
                           compiler_so='gcc -mno-cygwin -mdll -O -Wall',
                           compiler_cxx='g++ -mno-cygwin -O -Wall',
                           linker_exe='gcc -mno-cygwin',
                           linker_so='%s -mno-cygwin %s %s'
                                      % (self.linker_dll, shared_option,
                                         entry_point))
  </code></pre>
  
  <p>Relaced with </p>
  
  <pre><code>self.set_executables(compiler='gcc -O -Wall',
                           compiler_so='gcc -mdll -O -Wall',
                           compiler_cxx='g++ -O -Wall',
                           linker_exe='gcc',
                           linker_so='%s %s %s'
                                      % (self.linker_dll, shared_option,
                                         entry_point))
  </code></pre>
  
  <p>Now when i tried to build again i get this error ?</p>
  
  <pre><code>C:\zbar&gt;setup.py install build --compiler=mingw32
  running install
  running build
  running build_ext
  building 'zbar' extension
  C:\MinGW\bin\gcc.exe -mdll -O -Wall -IC:\Python26\include -IC:\Python26\PC -c zb
  armodule.c -o build\temp.win32-2.6\Release\zbarmodule.o
  In file included from zbarmodule.c:24:0:
  zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory
   #include &lt;zbar.h&gt;
                    ^
  compilation terminated.
  error: command 'gcc' failed with exit status 1
  
  C:\zbar&gt;
  </code></pre>
  
  <p><strong>How should i get over with this error any one please help i need to install Zbar.</strong>
  Also Need to know if i should use Python 2.7 or 2.6 for better use of this.</p>