Ich versuche exe mit py2exe
in Python zu machen. Wenn ich py2exe
importieren Ich erhalte Fehler wie folgt aus:Kein Modul namens Maschinen
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import py2exe
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\py2exe-0.9.2.0-py2.7-win32.egg\py2exe\__init__.py", line 9, in <module>
patch_distutils()
File "C:\Python27\lib\site-packages\py2exe-0.9.2.0-py2.7-win32.egg\py2exe\patch_distutils.py", line 68, in patch_distutils
from . import distutils_buildexe
File "C:\Python27\lib\site-packages\py2exe-0.9.2.0-py2.7-win32.egg\py2exe\distutils_buildexe.py", line 91, in <module>
from . import runtime
File "C:\Python27\lib\site-packages\py2exe-0.9.2.0-py2.7-win32.egg\py2exe\runtime.py", line 3, in <module>
from .dllfinder import Scanner, pydll
File "C:\Python27\lib\site-packages\py2exe-0.9.2.0-py2.7-win32.egg\py2exe\dllfinder.py", line 7, in <module>
from importlib.machinery import EXTENSION_SUFFIXES
ImportError: No module named machinery
Kann jede Stelle mir helfen, diese Fixierung aus. Ich bekomme kein Maschinenmodul wo.
Wie haben installieren Sie das py2exe-Modul? – Addison
ich es von der Quelle heruntergeladen und lief Python 'setup.py install' – Anand
' importlib' wurde in Python 3. hinzugefügt Haben Sie auch 3 Python auf Ihrem Computer installiert ist, und welche genaue Verbindung verwendet wurde, die py2exe Quelle zum Download? – Talvalin