Python Pyinstaller正在生成空的dist文件夹

Python Pyinstaller正在生成空的dist文件夹,python,python-3.x,pyinstaller,Python,Python 3.x,Pyinstaller,我对python比较陌生,我正在尝试创建python应用程序的EXE 我看到这里有很多关于堆栈溢出的类似问题,但是没有一个有意义的答案,所以我决定再次提出这个问题 以下是Pyinstaller的详细信息: C:\Users\renan.klehm\Desktop\AutoCTE-Python>pyinstaller --onefile cli.py 164 INFO: PyInstaller: 3.5 165 INFO: Python: 3.8.0 165 INFO: Platform:

我对python比较陌生,我正在尝试创建python应用程序的EXE

我看到这里有很多关于堆栈溢出的类似问题,但是没有一个有意义的答案,所以我决定再次提出这个问题

以下是Pyinstaller的详细信息:

C:\Users\renan.klehm\Desktop\AutoCTE-Python>pyinstaller --onefile cli.py
164 INFO: PyInstaller: 3.5
165 INFO: Python: 3.8.0
165 INFO: Platform: Windows-7-6.1.7601-SP1
181 INFO: wrote C:\Users\renan.klehm\Desktop\AutoCTE-Python\cli.spec
184 INFO: UPX is not available.
185 INFO: Extending PYTHONPATH with paths
['C:\\Users\\renan.klehm\\Desktop\\AutoCTE-Python',
 'C:\\Users\\renan.klehm\\Desktop\\AutoCTE-Python']
185 INFO: checking Analysis
476 INFO: checking PYZ
476 INFO: Building PYZ because PYZ-00.toc is non existent
476 INFO: Building PYZ (ZlibArchive) C:\Users\renan.klehm\Desktop\AutoCTE-Python
\build\cli\PYZ-00.pyz
Traceback (most recent call last):
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy
.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy
.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\renan.klehm\AppData\Local\Programs\Python\Python38-32\Scripts\p
yinstaller.exe\__main__.py", line 7, in <module>
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\__main__.py", line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\build_main.py", line 844, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'
))
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\build_main.py", line 791, in build
    exec(code, spec_namespace)
  File "C:\Users\renan.klehm\Desktop\AutoCTE-Python\cli.spec", line 18, in <modu
le>
    pyz = PYZ(a.pure, a.zipped_data,
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py", line 98, in __init__
    self.__postinit__()
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
    self.assemble()
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py", line 128, in assemble
    self.code_dict = {
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py", line 129, in <dictcomp>
    key: strip_paths_in_code(code)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py", line 652, in strip_paths_in_code
    consts = tuple(
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py", line 653, in <genexpr>
    strip_paths_in_code(const_co, new_filename)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py", line 660, in strip_paths_in_code
    return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_
stacksize,
TypeError: an integer is required (got type bytes)

C:\Users\renan.klehm\Desktop\AutoCTE-Python>pyinstaller cli.py
131 INFO: PyInstaller: 3.5
131 INFO: Python: 3.8.0
131 INFO: Platform: Windows-7-6.1.7601-SP1
143 INFO: wrote C:\Users\renan.klehm\Desktop\AutoCTE-Python\cli.spec
144 INFO: UPX is not available.
147 INFO: Extending PYTHONPATH with paths
['C:\\Users\\renan.klehm\\Desktop\\AutoCTE-Python',
 'C:\\Users\\renan.klehm\\Desktop\\AutoCTE-Python']
147 INFO: checking Analysis
424 INFO: checking PYZ
424 INFO: Building PYZ because PYZ-00.toc is non existent
426 INFO: Building PYZ (ZlibArchive) C:\Users\renan.klehm\Desktop\AutoCTE-Python\build\cli\PYZ-00.pyz

Traceback (most recent call last):
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\renan.klehm\AppData\Local\Programs\Python\Python38-32\Scripts\pyinstaller.exe\__main__.py", line 7, in <module>
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 111, in run
    run_build(pyi_config, spec_file, **vars(args))
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\__main__.py", line 63, in run_build
    PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 844, in main
    build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'
))
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\build_main.py", line 791, in build
    exec(code, spec_namespace)
  File "C:\Users\renan.klehm\Desktop\AutoCTE-Python\cli.spec", line 18, in <module>
    pyz = PYZ(a.pure, a.zipped_data,
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 98, in __init__
    self.__postinit__()
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in __postinit__
    self.assemble()
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 128, in assemble
    self.code_dict = {
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\api.py", line 129, in <dictcomp>
    key: strip_paths_in_code(code)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 652, in strip_paths_in_code
    consts = tuple(
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 653, in <genexpr>
    strip_paths_in_code(const_co, new_filename)
  File "c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-packages\PyInstaller\building\utils.py", line 660, in strip_paths_in_code
    return code_func(co.co_argcount, co.co_kwonlyargcount, co.co_nlocals, co.co_
stacksize,
TypeError: an integer is required (got type bytes)
C:\Users\renan.klehm\Desktop\AutoCTE Python>pyinstaller--onefile cli.py
164信息:PyInstaller:3.5
165信息:Python:3.8.0
165信息:平台:Windows-7-6.1.7601-SP1
181信息:编写了C:\Users\renan.klehm\Desktop\AutoCTE Python\cli.spec
184信息:UPX不可用。
185信息:使用路径扩展PYTHONPATH
['C:\\Users\\renan.klehm\\Desktop\\AutoCTE Python',
'C:\\Users\\renan.klehm\\Desktop\\AutoCTE Python']
185信息:检查分析
476信息:正在检查PYZ
476信息:正在生成PYZ,因为PYZ-00.toc不存在
476信息:构建PYZ(ZlibArchive)C:\Users\renan.klehm\Desktop\AutoCTE Python
\build\cli\PYZ-00.PYZ
回溯(最近一次呼叫最后一次):
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy
.py“,第192行,作为主模块运行
返回运行代码(代码、主全局、无、,
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\runpy
.py”,第85行,在运行代码中
exec(代码、运行\全局)
文件“C:\Users\renan.klehm\AppData\Local\Programs\Python\Python38-32\Scripts\p
yinstaller.exe \\uuuuu main \\uuuuuuu.py“,第7行,在
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\\uuuuuu main\uuuuuuuu.py”,第111行,运行中
运行构建(pyi\u配置,规范文件,**vars(args))
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\\uuuuuu main\uuuuuuu.py”,第63行,运行构建
PyInstaller.building.build\u main.main(pyi\u配置,spec\u文件,**kwargs)
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\build\u main.py”,主目录第844行
构建(specfile,kw.get('distpath')、kw.get('workpath')、kw.get('clean_build'
))
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\build\u main.py”,第791行,内部版本
exec(代码、规范和命名空间)
文件“C:\Users\renan.klehm\Desktop\AutoCTE Python\cli.spec”,第18行,在
pyz=pyz(a.pure,a.zipped_数据,
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py“,第98行,在初始化中__
self.\uuuu postinit\uuuuu()
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\datastruct.py”,第158行,在__
self.assembly()
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py”,汇编中的第128行
self.code_dict={
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\api.py”,第129行,在
关键字:代码中的条带路径(代码)
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py”,第652行,在代码中的条带路径中
常量=元组(
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py”,第653行,在
代码中的条带路径(常量,新文件名)
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site-
packages\PyInstaller\building\utils.py”,第660行,在代码中的条带路径中
返回代码_func(co.co_argcount,co.co_kwonlyargcount,co.co_nlocals,co.co_
堆栈大小,
TypeError:需要整数(获取类型字节)
C:\Users\renan.klehm\Desktop\AutoCTE Python>pyinstaller cli.py
131信息:PyInstaller:3.5
131信息:Python:3.8.0
131信息:平台:Windows-7-6.1.7601-SP1
143信息:编写了C:\Users\renan.klehm\Desktop\AutoCTE Python\cli.spec
144信息:UPX不可用。
147信息:使用路径扩展PYTHONPATH
['C:\\Users\\renan.klehm\\Desktop\\AutoCTE Python',
'C:\\Users\\renan.klehm\\Desktop\\AutoCTE Python']
147信息:检查分析
424信息:正在检查PYZ
424信息:正在生成PYZ,因为PYZ-00.toc不存在
426信息:构建PYZ(ZlibArchive)C:\Users\renan.klehm\Desktop\AutoCTE Python\build\cli\PYZ-00.PYZ
回溯(最近一次呼叫最后一次):
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\runpy.py”,第192行,位于主运行模块中
返回运行代码(代码、主全局、无、,
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\runpy.py”,第85行,在运行代码中
exec(代码、运行\全局)
文件“C:\Users\renan.klehm\AppData\Local\Programs\Python38-32\Scripts\pyinstaller.exe\ \uuuuuuu main\uuuuuuuuuu.py”,第7行,在
文件“c:\users\renan.klehm\appdata\local\programs\python\python38-32\lib\site packages\PyInstaller\uuuuuu main\uuuuuuuuu.py”,第111行,正在运行
运行构建(pyi\u配置,规范文件,**vars(args))
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\site packages\PyInstaller\\uuuuuuuuu main\uuuuuuuu.py”,第63行,在运行版本中
PyInstaller.building.build\u main.main(pyi\u配置,spec\u文件,**kwargs)
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\site packages\PyInstaller\building\build\u main.py”,第844行,main
构建(specfile,kw.get('distpath')、kw.get('workpath')、kw.get('clean_build'
))
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\site packages\PyInstaller\building\building\u main.py”,第791行,内部版本
exec(代码、规范和命名空间)
文件“C:\Users\renan.klehm\Desktop\AutoCTE Python\cli.spec”,第18行,在
pyz=pyz(a.pure,a.zipped_数据,
文件“c:\users\renan.klehm\appdata\local\programs\python38-32\lib\site packages\PyInstaller\building\api.py”,第98行,在uu init中__
self.\uuuu postinit\uuuuu()
文件“c:\users\renan.klehm\appdata\local\programs\python\38-32\lib\site packages\PyInstaller\building\datastruct.py”,第158行,在u postinit中__
self.assembly()
文件“c:\user”