Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.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 为什么不是';Pyt安装程序使我成为一个.exe文件?_Python_Pyinstaller - Fatal编程技术网

Python 为什么不是';Pyt安装程序使我成为一个.exe文件?

Python 为什么不是';Pyt安装程序使我成为一个.exe文件?,python,pyinstaller,Python,Pyinstaller,我正试图按照下面的步骤将一个简单的Hello World脚本制作成一个.exe文件 我的Windows Vista带有AMD 64位处理器 我已经安装了Python 2.6.5(Windows AMD64版本) 我已经设置了路径(如果是正确的话),以便命令行能够识别Python 我已经安装了UPX(Windows似乎只有32位版本),并按照说明将UPX.exe的副本粘贴到Python26文件夹中。 我已安装Pywin(Windows AMD 64 Python 2.6版) 我已经运行了Pyins

我正试图按照下面的步骤将一个简单的Hello World脚本制作成一个.exe文件

我的Windows Vista带有AMD 64位处理器
我已经安装了Python 2.6.5(Windows AMD64版本)
我已经设置了路径(如果是正确的话),以便命令行能够识别Python
我已经安装了UPX(Windows似乎只有32位版本),并按照说明将UPX.exe的副本粘贴到Python26文件夹中。
我已安装Pywin(Windows AMD 64 Python 2.6版)
我已经运行了Pyinstaller的Configure.py。它给出了一些错误消息,但似乎已完成。我不知道这是否是导致问题的原因,因此在我运行它时,它会说:

C:\Python26\Pyinstaller\branchs\py26win>Configure.py
I:从C:\Python26\Pyinstaller\branchs\py26win\config.dat读取旧配置
I:计算执行依赖项
I:查找TCL/TK…
I:分析C:\Python26\DLLs\u tkinter.pyd
W:无法获取文件的二进制依赖项:
W:C:\Python26\DLLs\u tkinter.pyd
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回_getImports_pe(pth) 文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1] 索引器:列表索引超出范围

I:分析C:\Python26\DLLs\u ctypes.pyd
W:无法获取文件的二进制依赖项:
W:C:\Python26\DLLs\u ctypes.pyd
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Python26\DLLs\select.pyd
W:无法获取文件的二进制依赖项:
W:C:\Python26\DLLs\select.pyd
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Python26\DLLs\unicodedata.pyd
W:无法获取文件的二进制依赖项:
W:C:\Python26\DLLs\unicodedata.pyd
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Python26\DLLs\bz2.pyd
W:无法获取文件的二进制依赖项:
W:C:\Python26\DLLs\bz2.pyd
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Python26\python.exe
I:C:\Python26\python.exe的依赖程序集:
I:amd64_Microsoft.VC90.CRT_1FC8B3B9A118E3B_9.0.21022.8_无
I:搜索程序集amd64_Microsoft.VC90.CRT_1FC8B3B9A118E3B_9.0.21022.8_ 没有…
I:找到清单C:\Windows\WinSxS\Manifests\amd64\U microsoft.vc90.crt\U 1fc8b3b9a 1e18e3b_9.0.21022.8_无_750b37ff97f4f68b.清单
I:搜索文件msvcr90.dll
I:找到文件C:\Windows\WinSxS\amd64\U microsoft.vc90.crt\U 1fc8b3b9a1e18e3b\U 9.0.21 022.8_none_750b37ff97f4f68b\msvcr90.dll
I:搜索文件msvcp90.dll
I:找到文件C:\Windows\WinSxS\amd64\U microsoft.vc90.crt\U 1fc8b3b9a1e18e3b\U 9.0.21 022.8_none_750b37ff97f4f68b\msvcp90.dll
I:搜索文件msvcm90.dll
I:找到文件C:\Windows\WinSxS\amd64\U microsoft.vc90.crt\U 1fc8b3b9a1e18e3b\U 9.0.21 022.8_none_750b37ff97f4f68b\msvcm90.dll
I:添加Microsoft.VC90.CRT\Microsoft.VC90.CRT.manifest
I:添加Microsoft.VC90.CRT\msvcr90.dll
I:添加Microsoft.VC90.CRT\msvcp90.dll
I:添加Microsoft.VC90.CRT\msvcm90.dll
W:无法获取文件的二进制依赖项:
W:C:\Python26\python.exe
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Windows\WinSxS\Manifests\amd64\U microsoft.vc90.crt\U 1FC8B3B9A118E 3b_9.0.21022.8_无_750b37ff97f4f68b.舱单
I:分析C:\Windows\WinSxS\amd64\U microsoft.vc90.crt\U 1fc8b3b9a1e18e3b\U 9.0.210 22.8_none_750b37ff97f4f68b\msvcr90.dll
W:无法获取文件的二进制依赖项:
W:C:\Windows\WinSxS\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_无_ 750b37ff97f4f68b\msvcr90.dll
W:回溯(最近一次呼叫最后一次):
get中的文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第608行 进口
返回\u getImports\u pe(pth)
文件“C:\Python26\Pyinstaller\branchs\py26win\bindepend.py”,第275行,在 tImports\u pe
importva,importsz=datadirs[1]
索引器:列表索引超出范围

I:分析C:\Windows\WinSxS\amd64\U microsoft.vc90.crt\U 1fc8b3b9a1e18e3b\U 9.0.210 22.8_none_750b37ff97f4f68b\msvcp90.dll
W:不能
#!/usr/bin/env python 
for i in xrange(10000): 
print "Hello, World!"