Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 使用py2exe创建python应用程序的可执行文件_Python 2.7_Py2exe - Fatal编程技术网

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

Python 2.7 使用py2exe创建python应用程序的可执行文件,python-2.7,py2exe,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 = [proj

我一直在为我的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
回溯(最近一次呼叫最后一次):
文件“C:\mypath\to\createexe.py”,第14行,在
选项={'py2exe':{'bundle_files':1}},
文件“C:\Python27\lib\distutils\core.py”,第162行,在安装程序中
引发系统退出,错误
SystemExit:错误:MSVCP90.dll:没有这样的文件或目录
正在寻找解决方案。请提前感谢。

有关解决方案,请转到此处: