온갖 실행 에러를 보정해서 만든,

msvcp90.dll 파일은 다운받아서 python2.7/DLLs에 넣으면 된다.

>> python setup.py py2exe

from distutils.core import setup
import Tkinter
import py2exe
import numpy
import matplotlib
import scipy
import FileDialog

setup(
    #console=["mod2.py"]
    windows=["module2.py"],
          options={
               'py2exe': {
                          'packages' :  ['matplotlib', 'pytz'],
                          'dll_excludes': ['libgdk-win32-2.0-0.dll',
                                         'libgobject-2.0-0.dll',
                                         'libgdk_pixbuf-2.0-0.dll',
                                         'libgtk-win32-2.0-0.dll',
                                         'libglib-2.0-0.dll',
                                         'libcairo-2.dll',
                                         'libpango-1.0-0.dll',
                                         'libpangowin32-1.0-0.dll',
                                         'libpangocairo-1.0-0.dll',
                                         'libglade-2.0-0.dll',
                                         'libgmodule-2.0-0.dll',
                                         'libgthread-2.0-0.dll',
                                         'QtGui4.dll', 'QtCore.dll',
                                         'QtCore4.dll'
                                        ],
                          }
                },
      data_files=matplotlib.get_py2exe_datafiles(),
)

 

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

You May Also Like

[GAE/Python] Schema 수정하기 #2. 삭제

이번에는 DB에서 항목을 삭제하는 것. https://cloud.google.com/appengine/articles/update_schema 및 http://sandrylogan.wordpress.com/2010/12/08/delattr/ 사이트 참조   class AlbumModel(ndb.Expando): #ndb.Model -> ndb.Expando로 교체 artist…