About executable

Fábio Santos fabiosantosart at gmail.com
Mon Aug 26 05:20:04 EDT 2013


On 25 Aug 2013 21:47, "Luis José Novoa" <luisjosenovoa at gmail.com> wrote:
>
> Hi All. I am trying to create an executable file containing an
optimization code using the pyomo package for optimization modeling along
with ither packages like Numpy. When using py2exe to perform the task it
generates the executable file, but when I try to run it it reports: Import
Error: No module named pyomo.
>
> Any guidance on how to solve this problem would be really appreciated.

Have you checked py2exe's documentation? Bundling external modules with an
exe ought to be a very, very, common task. If all else fails, you can try
cx_freeze too. I think it generates windows executables too.

Good luck!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130826/af955af3/attachment.html>


More information about the Python-list mailing list