2011-06-25 25 views

Trả lời

1

Đối với một tập tin exe, sử dụng thiết lập này (lấy từ this answer):

from distutils.core import setup 
import py2exe, sys, os 

sys.argv.append('py2exe') 

setup(
    options = {'py2exe': {'bundle_files': 1, 'compressed': True}}, 
    windows = [{'script': "single.py"}], 
    zipfile = None, 
) 
1
from distutils.core import setup 
import py2exe, sys, os 

sys.argv.append('py2exe') 

setup(
    windows = [{'script': "pytho.py"}], 
) 

sửa để hỗ trợ x64 py2exe 64-bit không có nén

sử dụng: python 2.7 amd64

Các vấn đề liên quan