2016-03-10 5 views
6

निम्नलिखित प्राप्त Py2Exe चलने के दौरान:Py2Exe त्रुटि: लापता रन py3.5 जीत-amd64.exe

running py2exe 

12 missing Modules 
------------------ 
? Image        imported from openpyxl.drawing.image 
? PIL._imagingagg      imported from PIL.ImageDraw 
? PyQt5        imported from PIL.ImageQt 
? PySide        imported from PIL.ImageQt 
? _abcoll        imported from openpyxl.compat.odict 
? _imaging_gif      imported from PIL.GifImagePlugin 
? _util        imported from PIL.ImageCms 
? cffi        imported from PIL.Image, PIL.PyAccess 
? lxml        imported from openpyxl.xml, openpyxl.xml.functions 
? openpyxl.tests      imported from openpyxl.reader.excel 
? readline       imported from cmd, code, pdb 
? tkinter        imported from PIL.ImageTk 
Building 'dist\dlpreport.exe'. 
error: [Errno 2] No such file or directory: 'C:\\Python\\lib\\site-packages\\py2exe\\run-py3.5-win-amd64.exe' 

मैं इस वजह से Py2Exe वर्तमान में अजगर 3.4 के लिए बनाया गया है, लेकिन अगर सोच रहा हूँ संभालने कर रहा हूँ इसे एक और पायथन निर्माण स्थापित किए बिना मजबूर करने का एक तरीका है।

+0

देखें: http://stackoverflow.com/questions/32963057/is-there-a-py2exe-version-thats-compatible-with-python-3-5 – Damian

उत्तर

1

यदि वे मॉड्यूल आपके एप्लिकेशन के लिए किसी भी उपयोग के नहीं हैं तो बस अपनी सेटअप फ़ाइल में कमांड जोड़ें। यह स्वचालित रूप से उन मॉड्यूल को बाहर कर देगा और चेतावनियां भेजना बंद कर देगा।

setup(
    options={'py2exe':{'excludes':['Image','PIL._imagingagg','PyQt4', 
    'PyQt5','_abcoll','_imaging_gif','_util','cffi','lxml','openpyxl.tests', 
    'readline','tkinter']}}, 
    ) 
+0

दुर्भाग्य से एक उन लोगों में से कुछ में किया जाता है मेरा आवेदन। – user987654321

संबंधित मुद्दे