D:\TDDOWNLOAD\WWW1\pyinstaller>python Makespec.py C:\Documents and Settings\Admi
nistrator\桌面\a.py
wrote D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec
now run Build.py to build the executable
D:\TDDOWNLOAD\WWW1\pyinstaller>python Build.py D:\TDDOWNLOAD\WWW1\pyinstaller\Do
cuments\Documents.spec
Traceback (most recent call last):
File "Build.py", line 1158, in <module>
main(args[0], configfilename=opts.configfile)
File "Build.py", line 1146, in main
build(specfile)
File "Build.py", line 1109, in build
execfile(spec)
File "D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec", line 3, in <mo
dule>
pathex=['D:\\TDDOWNLOAD\\WWW1\\pyinstaller'])
File "Build.py", line 232, in __init__
raise ValueError, "script '%s' not found" % script
ValueError: script 'C:\Documents' not found
D:\TDDOWNLOAD\WWW1\pyinstaller>发布于 2010-01-25 18:54:01
使用完整目录
cd D:\TDDOWNLOAD\WWW1\pyinstaller
python Makespec.py D:\TDDOWNLOAD\WWW1\pyinstaller\ss\a.py
python Build.py D:\TDDOWNLOAD\WWW1\pyinstaller\a\a.spec没问题的
发布于 2010-01-25 17:45:30
用空格将路径用引号括起来
python Makespec.py "C:\Documents and Settings\Admi nistrator\桌面\a.py"https://stackoverflow.com/questions/2131324
复制相似问题