Search code examples
python-3.xcvxpycvxopt

cvxpy.error.SolverError: The solver CBC is not installed in windows 10 python?


I have tried to install cvxpy and cvxopt both packages by using pip command the package was installed successfully but while running my code i'm getting error like CBC not installed inside "C:\Python\Python36\lib\site-packages\cvxpy\problems\problem.py". I tried with many solution but not working could anyone please help me. Thanks in advance.


Solution

  • I don't have enough enough reputation to add comments, so I will post this as an answer.

    CBC requires cylp to be installed. try

        import cylp
    

    if it throws error, install it using

        pip install cylp
    

    go through this link for more details https://github.com/cvxgrp/cvxpy/issues/687