A
A
avonar2011-09-22 09:49:02
Python
avonar, 2011-09-22 09:49:02

py2exe how to include libraries

from distutils.core import setup
import py2exe

setup(console=['parser.py'], options = {'py2exe': {'includes': 'leaf',}})


so I do it like this, but when compiling, it says to me that it cannot find leaf, when I try to run it, it says that it cannot import leaf, WHAT AM I DOING WRONG? smoked mana, did not find it.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
V
Vladimir Sokolovsky, 2011-09-22
@inlanger

Try putting the library folder next to your .py file

S
subvillion, 2011-09-24
@subvillion

the leaf module is not installed, set something like this:
c:\Python27\Scripts\easy_install.exe leaf
if there is no easy_install.exe, look for Setuptools here

S
subvillion, 2011-09-24
@subvillion

although no, it’s installed, I didn’t read the conclusion due to lack of sleep

S
subvillion, 2011-09-24
@subvillion

How was Py2exe installed? Version? Perhaps installing a more recent version from the link above will help.

S
subvillion, 2011-09-24
@subvillion

I also don't like the format, try this:
setup(console=['parser.py'], options = {"py2exe": {"includes": ["leaf]}})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question