Support for Installing IPOPT: Solver

1,718 views
Skip to first unread message

SWATHI KRISHNA

unread,
Oct 1, 2022, 7:30:53 AM10/1/22
to Pyomo Forum
Dear all,
I am a beginner for PYOMO,  I tried to solve a nonlinear optimization problem using Pyomo, but it requires an ipopt solver. Does anybody here know how to install the IPOPT solver for python/Pycharm. Error got when try to install it is given below. Please help me to fix it.

Collecting ipopt
  Using cached ipopt-1.0.3.tar.gz (42 kB)
  Preparing metadata (setup.py) ... error
  Using cached ipopt-0.3.0.tar.gz (56 kB)
  Preparing metadata (setup.py) ... error
 Using cached ipopt-0.2.0.tar.gz (162 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in f:\pydss\lib\site-packages (from ipopt) (1.21.6)
Requirement already satisfied: cython in f:\pydss\lib\site-packages (from ipopt) (0.29.32)
Requirement already satisfied: six in f:\pydss\lib\site-packages (from ipopt) (1.16.0)
Requirement already satisfied: future in f:\pydss\lib\site-packages (from ipopt) (0.18.2)
Requirement already satisfied: setuptools in f:\pydss\lib\site-packages (from ipopt) (60.2.0)
Building wheels for collected packages: ipopt
  Building wheel for ipopt (setup.py) ... error
  ERROR: Command errored out with exit status 1:
 ERROR: Failed building wheel for ipopt
  Running setup.py clean for ipopt
Failed to build ipopt
Installing collected packages: ipopt
    Running setup.py install for ipopt ... error
    ERROR: Command errored out with exit status 1:

Thanking you
Swathi Krishna

Jeffrey Kantor

unread,
Oct 1, 2022, 9:05:56 AM10/1/22
to pyomo...@googlegroups.com
Hi …

If you’re using the Anaconda distribution of Python, you should have condo available to you via a terminal window. If so, give this a try …
conda install -c conda-forge ipopt
Alternatively, the Python script shown on https://jckantor.github.io/ND-Pyomo-Cookbook/notebooks/01.04-Cross-Platform-Installation-of-Pyomo-and-Solvers.html is an attempt at a cross-platform installation of Pyomo plus the ipopt and abc solvers.

Jeff


--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/7e605505-3580-4da9-be1a-ca603fd149b4n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages