2016-03-10 19 views
6

Py2Exe çalıştıran:Py2Exe Hata: Eksik çalışma py3.5-kazan-amd64.exe aşağıdaki Alma

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' 

Ben Py2Exe şu anda Python 3.4 için inşa edilmiştir ama merak ediyorum, çünkü bu olduğunu varsayarak yaşıyorum onu zorlamak için bir yol var (başka bir Python inşa etmeden).

+0

bakınız: olanların http://stackoverflow.com/questions/32963057/is-there-a-py2exe-version-thats-compatible-with-python-3-5 – Damian

cevap

1

Bu modüller, uygulamanız için herhangi bir kullanımda değilse, kurulum dosyasına dışlama komutunu eklemeniz yeterlidir. Bu modülleri otomatik olarak hariç tutar ve uyarı göndermeyi durdurur.

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

Maalesef birkaç kullanılmaktadır benim uygulamam. – user987654321

İlgili konular