pip install -i https://pypi.tuna.tsinghua.edu.cn/simple mkl
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cvxpy
错误解决方案如下:安装cvxopt(SolverError: The solver GLPK_MI)
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cvxopt
方法二(推荐):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple cvxpy[CBC,CVXOPT,GLOP,GLPK,GUROBI,MOSEK,PDLP,SCIP,XPRESS]
安装成功后,提示如下:
Installing collected packages: gurobipy, xpress, PySCIPOpt, pybind11, protobuf, Mosek, cvxopt, absl-py, scs, qdldl, ortools, ec
os, cylp, clarabel, osqp, cvxpy
Successfully installed Mosek-10.1.31 PySCIPOpt-5.0.0 absl-py-2.1.0 clarabel-0.7.1 cvxopt-1.3.2 cvxpy-1.4.3 cylp-0.92.2 ecos-2.0
.13 gurobipy-11.0.1 ortools-9.7.2996 osqp-0.6.5 protobuf-5.26.1 pybind11-2.12.0 qdldl-0.1.7.post2 scs-3.2.4.post1 xpress-9.4.0