PS D:\二手车评估> pyinstaller -F -i lcsh.py lc.ico
170 INFO: PyInstaller: 4.5.1
170 INFO: Python: 3.8.0
172 INFO: Platform: Windows-10-10.0.19041-SP0
172 INFO: wrote D:\二手车评估\lc.spec
174 INFO: UPX is not available.
176 INFO: Extending PYTHONPATH with paths
['D:\\二手车评估', 'D:\\二手车评估']
710 INFO: checking Analysis
710 INFO: Building Analysis because Analysis-00.toc is non existent
710 INFO: Initializing module dependency graph...
713 INFO: Caching module graph hooks...
735 INFO: Analyzing base_library.zip ...
4212 INFO: Caching module dependency graph...
4370 INFO: running Analysis Analysis-00.toc
4385 INFO: Adding Microsoft.Windows.Common-Controls to dependent assemblies of final executable
required by d:\users\83643\appdata\local\programs\python\python38\python.exe
4429 INFO: Analyzing D:\二手车评估\lc.ico
Traceback (most recent call last):
File "d:\users\83643\appdata\local\programs\python\python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\users\83643\appdata\local\programs\python\python38\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Users\83643\AppData\Local\Programs\Python\Python38\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 126, in run
run_build(pyi_config, spec_file, **vars(args))
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\__main__.py", line 65, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 815, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 762, in build
exec(code, spec_namespace)
File "D:\二手车评估\lc.spec", line 7, in <module>
a = Analysis(['lc.ico'],
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 294, in __init__
self.__postinit__()
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\datastruct.py", line 159, in __postinit__
self.assemble()
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\building\build_main.py", line 467, in assemble
priority_scripts.append(self.graph.add_script(script))
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\depend\analysis.py", line 304, in add_script
self._top_script_node = super(PyiModuleGraph, self).add_script(
File "d:\users\83643\appdata\local\programs\python\python38\lib\site-packages\PyInstaller\lib\modulegraph\modulegraph.py", line 1419, in add_script
contents = fp.read() + '\n'
File "d:\users\83643\appdata\local\programs\python\python38\lib\codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa8 in position 14: invalid start byte