该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
E:\Python>pyinstaller -F E:\Python\123.py
142 INFO: PyInstaller: 3.2.1
142 INFO: Python: 3.5.3
142 INFO: Platform: Windows-7-6.1.7601-SP1
143 INFO: wrote E:\Python\123.spec
144 INFO: UPX is not available.
146 INFO: Extending PYTHONPATH with paths
['E:\\Python', 'E:\\Python']
147 INFO: checking Analysis
147 INFO: Building Analysis because out00-Analysis.toc is non existent
147 INFO: Initializing module dependency graph...
149 INFO: Initializing module graph hooks...
152 INFO: Analyzing base_library.zip ...
3175 INFO: running Analysis out00-Analysis.toc
3179 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of f
inal executable
required by E:\Python\Python\python.exe
3724 INFO: Caching module hooks...
3731 INFO: Analyzing E:\Python\123.py
Traceback (most recent call last):
File "E:\Python\Python\Scripts\pyinstaller-script.py", line 11, in
load_entry_point('PyInstaller==3.2.1', 'console_scripts', 'pyinstaller')()
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\building\build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'
))
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\building\build_main.py", line 734, in build
exec(text, spec_namespace)
File "", line 16, in
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\building\build_main.py", line 212, in __init__
self.__postinit__()
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\building\datastruct.py", line 161, in __postinit__
self.assemble()
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\building\build_main.py", line 413, in assemble
priority_scripts.append(self.graph.run_script(script))
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\depend\analysis.py", line 144, in run_script
self._top_script_node = super(PyiModuleGraph, self).run_script(pathname)
File "E:\Python\Python\lib\site-packages\pyinstaller-3.2.1-py3.5.egg\PyInstall
er\lib\modulegraph\modulegraph.py", line 1432, in run_script
co_ast = compile(contents, pathname, 'exec', ast.PyCF_ONLY_AST, True)
File "E:\Python\123.py", line 1
Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 16:02:32) [MSC v.1900 64 bit
(AMD64)] on win32
^
SyntaxError: invalid syntax
E:\Python>
这是我生成exe时的东西