使用cvxpy==0.4.9过程中出现的问题以及解答
AttributeError: module ‘cvxpy’ has no attribute ‘sum_entries’
- pip install cvxpy==0.4.9,对现有的cvxpy版本降级。
ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’ (/environment/miniconda3/lib/python3.7/site-packages/scipy/misc/init.py)
- 安装指定版本 pip install scipy==1.2.1. 看详情。其会自动卸载之前的版本。
cvxpy.error.SolverError: The solver CVXOPT is not installed.
- pip install cvxopt==1.2.1
AttributeError: ‘LinOp’ object has no attribute ‘shape’
- pip install cvxcanon==0.1.1