1

我坚持创建我的 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

寻找解决方案。在此先感谢。

4

0 回答 0