Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

How to install IPOPT Linear Solver using Google Colab Python Environment

144 views
Skip to first unread message

Aderinsola Aliu

unread,
Jul 11, 2024, 11:16:44 PM7/11/24
to Pyomo Forum
Hello Everyone!

How can I install the IPOPT solver on my google Colab environment. 

I have tried using

!pip install ipopt but it returns this error

Collecting ipopt Using cached ipopt-1.0.3.tar.gz (42 kB) error: subprocess-exited-with-error × python setup.py egg_info 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. Preparing metadata (setup.py) ... error error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.


Best,
Aderinsola

Nicholson, Bethany L.

unread,
Jul 12, 2024, 4:45:56 PM7/12/24
to pyomo...@googlegroups.com

Try using this colab_helper script: https://github.com/IDAES/idaes-pse/blob/main/scripts/colab_helper.py

 

Instructions for using it are in a comment at the top of the file.

 

Bethany

 

From: pyomo...@googlegroups.com <pyomo...@googlegroups.com> On Behalf Of Aderinsola Aliu
Sent: Thursday, July 11, 2024 8:06 PM
To: Pyomo Forum <pyomo...@googlegroups.com>
Subject: [EXTERNAL] How to install IPOPT Linear Solver using Google Colab Python Environment

 

You don't often get email from aderins...@gmail.com. Learn why this is important

--
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/87fdc0a3-ffa2-402d-ad36-efa61b74efe6n%40googlegroups.com.

Aderinsola Aliu

unread,
Jul 13, 2024, 1:52:22 AM7/13/24
to pyomo...@googlegroups.com
Hello Bethany,

Thank you so much for this information. I ran the block of code to install Ipopt and it didn't return any error message.  I guess it worked this time around.

Thanks once again!


Aderinsola

Reply all
Reply to author
Forward
0 new messages