2016-03-10 7 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 в настоящее время построен для Python 3.4, но мне интересно, если есть способ заставить его (без установки другой сборки Python).

+0

См: http://stackoverflow.com/questions/32963057/is-there-a-py2exe-version-thats-compatible-with-python-3-5 – Damian

ответ

1

Если эти модули не подходят для вашего приложения, просто добавьте команду exclude в установочный файл. Он автоматически исключает эти модули и прекращает отправку предупреждений.

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

К сожалению, некоторые из тех, которые используются в мое заявление. – user987654321

 Смежные вопросы

  • Нет связанных вопросов^_^