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.
Installing numpy+mk from this link: http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and cvxopt with wheel file found in this link should solved problem: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cvxopt
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With