pyomo command line tool

60 views
Skip to first unread message

Tony Huerlimann

unread,
Jun 17, 2022, 2:26:05 PM6/17/22
to Pyomo Forum
I installed the pyomo and the glpk package and copied a abstract model with a data file for the pyomo book. I want to use the pyomo command line to run it on Windows 10 using the following command on the command line:
         pyomo solve --solver=glpk wl_abstract.py wl_data.dat

However the pyomo is not an executable! How do I proceed? Where can I find the pyomo executable?

Thank for help

Siirola, John D

unread,
Jun 17, 2022, 2:38:27 PM6/17/22
to pyomo...@googlegroups.com

How did you install Pyomo? 

 

On Windows,

  • if you used pip to install it into the system python, then the Pyomo executable should be in the “Scripts” directory within your Python installation (e.g., something like “C:\Program Files\Python39\Scripts”). 
  • If you used pip to install it into your user space, it is probably in something like “C:\Users\<username>\AppData\Roaming\Python\Python39\Scripts”
  • If you used anaconda, then it should be somewhere like “C:\ProgramData\Miniconda3\Scripts” (but in this case, running the “Anaconda Prompt” will automatically put the scripts directory on your path).

 

John

--
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/dcbd6064-eb9e-44c5-99a1-02d450162aedn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages