Windows pyinstaller错误 D:\TDDOWNLOAD\WWW1\pyinstaller>python Makespec.py C:\Documents and Settings\Admi 监管者\桌面\a、 派克 编写了D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec 现在运行Build.py来构建可执行文件 D:\TDDOWNLOAD\WWW1\pyinstaller>python Build.py D:\TDDOWNLOAD\WWW1\pyinstaller\Do cuments\Documents.spec 回溯(最近一次呼叫最后一次): 文件“Build.py”,第1158行,在 main(args[0],configfilename=opts.configfile) 文件“Build.py”,第1146行,在main中 构建(specfile) 文件“Build.py”,第1109行,内部版本 执行文件(规范) 文件“D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec”,第3行,在 pathex=['D:\\TDDOWNLOAD\\WWW1\\pyinstaller']) 文件“Build.py”,第232行,在_init中__ raise VALUERROR,“找不到脚本“%s”%script ValueError:找不到脚本“C:\Documents” D:\TDDOWNLOAD\WWW1\pyinstaller>

Windows pyinstaller错误 D:\TDDOWNLOAD\WWW1\pyinstaller>python Makespec.py C:\Documents and Settings\Admi 监管者\桌面\a、 派克 编写了D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec 现在运行Build.py来构建可执行文件 D:\TDDOWNLOAD\WWW1\pyinstaller>python Build.py D:\TDDOWNLOAD\WWW1\pyinstaller\Do cuments\Documents.spec 回溯(最近一次呼叫最后一次): 文件“Build.py”,第1158行,在 main(args[0],configfilename=opts.configfile) 文件“Build.py”,第1146行,在main中 构建(specfile) 文件“Build.py”,第1109行,内部版本 执行文件(规范) 文件“D:\TDDOWNLOAD\WWW1\pyinstaller\Documents\Documents.spec”,第3行,在 pathex=['D:\\TDDOWNLOAD\\WWW1\\pyinstaller']) 文件“Build.py”,第232行,在_init中__ raise VALUERROR,“找不到脚本“%s”%script ValueError:找不到脚本“C:\Documents” D:\TDDOWNLOAD\WWW1\pyinstaller>,windows,cmd,Windows,Cmd,在路径周围用空格括起引号 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&

在路径周围用空格括起引号

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>

在带有空格的路径周围加引号

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>
使用完整目录

python Makespec.py "C:\Documents and Settings\Admi nistrator\桌面\a.py"
可以

使用完整目录

python Makespec.py "C:\Documents and Settings\Admi nistrator\桌面\a.py"
没关系