How to use GLPK with cvxopt on Windows 10?

I am using 64 bit Windows 10. I downloaded glpk-4.64for Windows. I unzipped the file into my documents. I added the w64 path to this folder to the Windows environment variables. I check if glpk works on the command line by doing this:

C:\Users\userz>glpsol
GLPSOL: GLPK LP/MIP Solver, v4.64
No input problem file specified; try glpsol --help

So, I think it is glpkinstalled correctly.

Then I install cvxoptusing this on the command line:

python -m pip install cvxopt

Then he sets cvxopt.

When I do this:

import cvxopt.glpk

I get this error:

import cvxopt.glpk
ImportError: No module named glpk

So how can I fix this?

+6
source share
2 answers

Installing cvxopt with the wheel file found at this link solves the problem:

https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxopt

denfromufa.

+5

All Articles