title: Can you "install" GLPK in Windows, and is it even possible to install PyGLPK in Python 2.7?
body: <p>Since <a href="https://stackoverflow.com/questions/25635066/how-do-i-install-pyglpk-in-python-2-7-on-my-windows-machine">my original question</a> was met with dead silence, I've futilely tried more research and experimentation. I think it <em>should</em> be possible to install PyGLPK in Python 2.7 on Windows because I managed to get PyGLPK installed in Python 2.7 on Ubuntu, but I just cannot seem to do the same in Windows 7.</p>
  <p>I am beginning to suspect that it has something to do with not &quot;installing&quot; GLPK properly on Windows, but I am at a bit of a loss for how to properly do that. The &quot;official&quot; way of doing it (according to <a href="http://winglpk.sourceforge.net/" rel="nofollow noreferrer">this</a>) is to &quot;copy the DLLs to %SystemRoot%nsystem32 (e.g. c:\windows\system32),&quot; but that is confusing because there are dll files with &quot;dll&quot; in the name, dll files without &quot;dll&quot; in the name, batch files with &quot;dll&quot; in the name, files that aren't classified into any particular type, and should I copy the dll's directly or put them inside what folder or subfolder? I tried just putting everything directly under C:/Windows/System32, but that didn't help me install PyGLPK.</p>
  <p>Here is the full text of the error message I am getting after I try &quot;python setup.py build --compiler=mingw32 install&quot;:</p>
  <blockquote>
  <p>running build</p>
  <p>running build_ext</p>
  <p>building 'glpk' extension</p>
  <p>c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -Isrc -IC:\Python27\include -IC:\Python27\PC -c src\glpk.c -o build\temp.win32-2.7\Release\src\glpk.o -m32</p>
  <p>In file included from src\glpk.c:21:</p>
  <p>src\lp.h:24:18: error: glpk.h: No such file or directory</p>
  <p>In file included from src\glpk.c:21:</p>
  <p>src\lp.h:32: error: expected specifier-qualifier-list before 'glp_prob'</p>
  <p>src\lp.h:49: error: expected ')' before '*' token</p>
  <p>src\glpk.c: In function 'initglpk':</p>
  <p>src\glpk.c:52: error: 'GLP_MAJOR_VERSION' undeclared (first use in this function)</p>
  <p>src\glpk.c:52: error: (Each undeclared identifier is reported only once</p>
  <p>src\glpk.c:52: error: for each function it appears in.)</p>
  <p>src\glpk.c:52: error: 'GLP_MINOR_VERSION' undeclared (first use in this function)</p>
  <p>src\glpk.c:53: warning: implicit declaration of function 'glp_version'</p>
  <p>src\glpk.c:53: warning: passing argument 2 of 'strcmp' makes pointer from integer without a cast</p>
  <p>error: command 'gcc' failed with exit status 1</p>
  </blockquote>
  <p>I would really like to be able to use this tool for my thesis project so this is very important to me. Thank you to anyone who has any clue about what to do here.</p>