安装cvxpy之后,报错The solver GLPK_MI is not installed

安装cvxpy之后用的时候,报错The solver GLPK_MI is not installed

这边我们可以用以下代码查看已经安装的下载器:

print(cvxpy.installed_solvers())

在安装个cvxopt即可:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple  cvxopt

 安装完cvxopt之后再用print(cvxpy.installed_solvers())查看,显示已经安装

 

你可能感兴趣的:(python)