Windows+ Anaconda3+Python3.7 安装cvxpy包
电脑环境:Windows10, Anaconda 3.5, Python3.7
安装凸优化计算包cvxpy
下载对应python版本的cvxpy轮子(路径无所谓,找得到就行)点我下载
打开anaconda prompt,用pip命令安装, pip install cvxpy-1.1.7-cp37-cp37m-win_amd64.whl
文件名要对上,,。
注意:要进入你需要的那个env
conda env list
conda activate 环境名
出现如下错误 ERROR: Failed building wheel for scs,需要安装scs,pip install 文件名.whl
选择对应版本安装pip install 文件名.whl
出现如下错误 ERROR: Failed building wheel for ecos,需要安装ecos,pip install 文件名.whl
安装成功后,重新安装cvxpy,即执行,pip install cvxpy-1.1.7-cp37-cp37m-win_amd64.whl,即可
参考
[1]: https://blog.csdn.net/wiiliam_/article/details/90447029
[2]:https://blog.csdn.net/weixin_39986952/article/details/85116059?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.channel_param