Bonjour,
Je tente de créer un exe avec py2exe. Mon code utilise Mechanize.
La création de l'exe s'effectue correctement. Néanmoins lors de son exécution, j'ai le message d'erreur suivant:
File "test.pyw", line 5, in <module>
ImportError: No module named mechanize
Après recherche, j'ai trouvé ca: http://www.py2exe.org/index.cgi/ExeWithEggs
# unpack zipped eggs, because I believe py2exe chokes on them when resolving dependencies
# keep track of the top level packages in the eggs
# add all of the files in the eggs to the data_files, so that the eggs are installed along side the main exe
# build the exe
# generate a new library.zip that does not include anything in the top level packages found in step 2
Mais je ne vois pas vraiment ce qu'il faut faire. A quoi correspon le "data_files"
Merci de votre aide.
EDIT:
python 2.5
Partager