Ipopt in pyomo google colab

92 views Asked by At

I tried to use the following code to use ipopt in google colab, but it gave an error.


#solver:ipopt
!apt install coinor-libipopt-dev

!pip install ipopt
SolverFactory('ipopt').solve(model).write()

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for ipopt (setup.py) ... error
  ERROR: Failed building wheel for ipopt
  Running setup.py clean for ipopt
Failed to build ipopt
ERROR: Could not build wheels for ipopt, which is required to install pyproject.toml-based projects

Please, anyone know how to handle the following error, and what should be the code to avoid giving errors?

0

There are 0 answers