Answer the question
In order to leave comments, you need to log in
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
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
although no, it’s installed, I didn’t read the conclusion due to lack of sleep
How was Py2exe installed? Version? Perhaps installing a more recent version from the link above will help.
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 questionAsk a Question
731 491 924 answers to any question