How do you install glpk-solver along with pyomo in Winpython

Viewed 23270

I want to use "pyomo" for my studies. I installed pyomo via easy_install coopr install instructions, Pyomo needs a solver to work so I wanted to install the (GNU Linear Programming Kit) glpk_webpage, pyomo seems to be installed just right because I can import it in spyder (i am using WinPython-64bit-2.7.5.3) with import coopr.pyomo

However, I cannot do anything without glpk I guess...

I downloaded glpk-4.52 (latest version) from the ftp server but I do not know what to do with the batch files I found in the "w64"-folder I should use(?) according to "Installing GLPK"

I do not have Visual Studio installed - Isn't it possible to work without it?

4 Answers

If you are using Anaconda, both pyomo and glpk can be installed with conda install. In the Windows terminal, activate your conda environment, then:

conda install -c conda-forge pyomo
conda install -c conda-forge glpk

To test the glpk installation:

glpsol --help
Related