I use 64 bit Windows 10.
I downloaded glpk-4.64
for Windows. I unzipped the file to my documents. I added the w64 path in this folder to Windows' environment variables. I check if the glpk works in command line by executing this:
C:\Users\userz>glpsol
GLPSOL: GLPK LP/MIP Solver, v4.64
No input problem file specified; try glpsol --help
So I think glpk
is installed properly.
Then I install cvxopt
using this in command line:
python -m pip install cvxopt
Then it installs cvxopt
.
When I do:
import cvxopt.glpk
I get this error:
import cvxopt.glpk
ImportError: No module named glpk
So, how do I fix this?
Installing cvxopt with the wheel file found at this link solved problem:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxopt
Many thanks to denfromufa.