使用py2exe创建python应用程序的可执行文件

时间:2013-04-06 04:48:57

标签: python-2.7 py2exe

我一直在创建我的python程序的可执行文件。我创建可执行文件的设置如下所示,

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

sys.argv.append('py2exe')
project = dict(script="smarttester.py",
      dest_base="Smart Tester",
      uac_info="requireAdministrator")
console = [project]

setup(
    version = "1.0.0",
    description = "executable with privileges",
    console = console,
    options = {'py2exe': {'bundle_files': 1}},
    zipfile = None
     )

我收到的错误显示为,

 Traceback (most recent call last):
     File "C:\mypath\to\createexe.py", line 14, in <module>
         options = {'py2exe': {'bundle_files': 1}},
     File "C:\Python27\lib\distutils\core.py", line 162, in setup
          raise SystemExit, error
 SystemExit: error: MSVCP90.dll: No such file or directory

寻找解决方案。谢谢。

0 个答案:

没有答案
相关问题